Difference between revisions of "Element:ARAY"

From The Powder Toy
Jump to: navigation, search
m (wip category)
m (Transparent Element for BRAY)
(23 intermediate revisions by 11 users not shown)
Line 2: Line 2:
 
| icon = ARAY.png
 
| icon = ARAY.png
 
| longname = A-Type Ray Emitter
 
| longname = A-Type Ray Emitter
| image = [[]]
+
| image = [[File:ARAYsticker.gif]]
  
| advection = 0.00
+
| identifier = DEFAULT_PT_ARAY
| airdrag = 0.000
+
| name = ARAY
| airloss = 0.90
+
| description = Ray Emitter. Rays create points when they collide.
| collision = 0.00
+
| colour = FFBB00
| colour = 404060
+
| menusection = SC_ELEC
| description =Ray Emitter. Rays create points when they collide
+
| menuvisible = 1
| diffusion = 0.00
+
| advection = 0
 +
| airdrag = 0
 +
| airloss = 0.9
 +
| loss = 0
 +
| collision = 0
 +
| diffusion = 0
 
| explosive = 0
 
| explosive = 0
 
| falldown = 0
 
| falldown = 0
 
| flammable = 0
 
| flammable = 0
| gravity = 0.00
+
| gravity = 0
 
| hardness = 1
 
| hardness = 1
| heatconduct = 251
+
| heatconduct = 0
| highpressure =
+
| hotair = 0
| highpressuretransition =
+
| meltable = 0
| hightemperature =
 
| hightemperaturetransition =
 
| hotair = 0.000000
 
| identifier = DEFAULT_PT_ARAY
 
| loss = 0.00
 
| lowpressure =
 
| lowpressuretransition =
 
| lowtemperature =
 
| lowtemperaturetransition =
 
| meltable = 1
 
| name = ARAY
 
| properties = TYPE_SOLID | PROP_CONDUCTS | PROP_HOT_GLOW | PROP_LIFE_DEC
 
 
| state = ST_SOLID
 
| state = ST_SOLID
 
| temperature = 295.15
 
| temperature = 295.15
 
| weight = 100
 
| weight = 100
 +
| properties = TYPE_SOLID PROP_LIFE_DEC
 +
| lowtemperature =
 +
| lowtemperaturetransition =
 +
| hightemperature =
 +
| hightemperaturetransition =
 +
| lowpressure =
 +
| lowpressuretransition =
 +
| highpressure =
 +
| highpressuretransition =
 
}}
 
}}
  
==Creation==
 
Only created by placing it on the screen.
 
  
 
== Reactions ==
 
== Reactions ==
ARAY reacts with [[sprk]] to create [[bray]] in the direction it was sparked. The bray's temp is the temp of the aray that created it. The bray can also have different properties depending on what was used to spark it.  
+
Can receive a SPRK from all of the electric conductors, even SWCH. It creates a line of the element BRAY in the direction opposite to the side it was sparked from. Unlike other electronics, ARAY must receive a SPRK from a pixel in direct contact with it.  
 +
 
 +
The temperature of the BRAY is the same as the temperature of the ARAY that created it.  
  
ARAY is also one of the elements that bray passes through.
+
The {{Material| BRAY}} that comes out of the {{Material| ARAY}} can also have different properties depending on what was used to spark it. If ARAY's .life is set, the resulting BRAY will use ARAY's .life. If ARAY is sparked with {{Material| PSCN}} instead of any other conductor, the BRAY only stays for a couple of frames, removes other types of {{Material| BRAY}}, looks orange and has tmp of 2. If {{Material| ARAY}} is sparked with {{Material| INST}} the resulting beam will go through most conductive materials {{Material| SPRK}}'ing them all the way. Note, that the beam of {{Material| BRAY}} will not be created if a non-transparent particle is directly in front of it (Including metals for {{Material| INST}}). By transparent this means any particle that {{Material| BRAY}} can pass through. Those materials are covered below.
  
 
== Uses ==
 
== Uses ==
Good for many electronics, circuits, etc. Can be used for memory, calcualtions, animations, picture drawing, ect.
 
  
=== Examples ===
+
ARAY is an indestructible element in the Electronics group, it can receive a SPRK from all of the electric conductors and SWCH.
 +
It creates a line of the element BRAY in the direction corresponding to that which it was sparked from (e.g. if the spark hit the left edge of the ARAY, the BRAY would emanate from the right edge).
 +
To spark ARAY, the conductor '''must''' touch the ARAY particle, unlike other conductors which can SPRK each other over a space of 1 pixel. More than anything, ARAY is creator of the element {{Material| BRAY}}, which will be described in depth here.
 +
 
 +
===  BRAY  ===
 +
{{Material| BRAY}} is the byproduct of ARAY being SPRK'ed by any metal. It is an element that doesn't show in the menu unless you use a mod or script, it is created from SPRK'ed ARAY. Its color is determined by the ratio between the colors on the 30 bit color spectrum. It can hold a 30 bit number and, by default (unless it was created by {{Material| PSCN}}), all 30 bits are set giving it its white appearance. You can use {{Material| FILT}} to set that value to something different or preform a bitwise operation on it.
 +
 
 +
The BRAY element rapidly fades after its creation with a life of 30 frames. One way to make it "drawable" is using the particle picker in the "Tools" section. The default way to use the part picker is by pressing down with your scroll wheel or by clicking on it with the left mouse button while holding the Alt button. Unlike neutrons and photons, BRAY passes through all wall elements. It will go off the edge of the screen unless it hits a non-transparent particle. If BRAY hits a conductor, such as METL, then the element gets SPRK'ed. BRAY can also go through ARAY which is useful if you want to spark a PSCN with ARAY pointing right back at it.
 +
 
 +
If two lines of BRAY collide, they create a 'solid' BRAY at the point which will fade slowly with a life of 1020. When a BRAY fires into another BRAY it will turn into 'solid' BRAY. The 'solid' BRAY is unique in that it is also transparent. So while BRAY is normally not transparent, it will become transparent when they create 'solid' BRAY. Any white BRAY that passes through the 'solid' BRAY will restore the life of the BRAY back to 1020.
 +
 
 +
PSCN sparking ARAY will create a brown BRAY. This type has a life of 2 which turns to 1 if two BRAY end up in the same space. Brown BRAY is similar to a white BRAY, but doesn't SPRK conductors and doesn't interact with FILT. It doesn't even have a wavelength. It also erases any live white BRAYs, does not create a 'solid' version when colliding with itself.
 +
 
 +
==== Transparent Element for BRAY ====
 +
 
 +
I don't mean transparent as in see-through. I mean that a BRAY can travel through it. Transparent elements include, 'solid' BRAY, {{Material| FILT}}, {{Material| STOR}}, {{Material| ARAY}}, {{Material| INWR}}, {{Material| WIFI}}, and activated {{Material| SWCH}}. INWR is interesting because it's a SPRK-able conductor that BRAY practically ignores. This could be useful in places where you want to activate ARAY but also can't put down a conductor because it will block another BRAY's path.
 +
 
 +
==== BRAY's Interaction with SWCH ====
 +
 
 +
Bray can pass through {{Material| SWCH}} which is turned on. This means that you can potentially read whether or not a SWCH is on without getting close to it. If SWCH is off it can be turned on with two Brown BRAYs that are directly adjacent to it (shares an edge with it). The same goes for if SWCH is on. The two bray must also be next to each other meaning one bray traveling from the left and one bray traveling from the right would not change it. An example of this being used for electronics can be found in examples.
 +
 
 +
== Invisible DTEC ==
 +
 
 +
One of the only reasons people sometimes don't use ARAY as a BRAY beam emitter is because they want to cover up another particle with something transparent. For example, most subframe adders use a technique where DTEC is used inside the path that BRAY goes through. To prevent the BRAY from hitting the DTEC, the DTEC is covered with ARAY. The reason that FILT isn't used for this problem is because it does not like being above other particles in the same stack, thus FILT cannot be used to make other particles transparent. STOR and solid BRAY also work.
 +
 
 +
== Examples ==
 
{|border="1" cellpadding="5" cellspacing="0"
 
{|border="1" cellpadding="5" cellspacing="0"
 
|-
 
|-
Line 55: Line 81:
 
| This save shows using it for displaying pictures.
 
| This save shows using it for displaying pictures.
 
| {{ save | id=898358 }}
 
| {{ save | id=898358 }}
 +
|-
 +
| This save shows it being used for a binary counter.
 +
| {{ save | id=2637827}}
 +
|-
 +
| This computer uses ARAY for all of its function.
 +
| {{ save | id=427363}}
 
|}
 
|}
 
==Note==
 
This page still needs worked on. I didn't change the ptypes.
 
  
 
{{Languages}}
 
{{Languages}}
 
[[Category:Elements]]
 
[[Category:Electronics]]
 
[[Category:Work in progress]]
 

Revision as of 02:36, 11 May 2023

ARAY.png A-Type Ray Emitter
ARAYsticker.gif
Ray Emitter. Rays create points when they collide.
Properties
Section Electronics
Spawn temperature 22°C
Heat Conductivity 0%
Relative weight 100
Gravity 0
Acid dissolve rate 0.1%
Flammability 0
State Solid
Misc properties
Source code


Reactions

Can receive a SPRK from all of the electric conductors, even SWCH. It creates a line of the element BRAY in the direction opposite to the side it was sparked from. Unlike other electronics, ARAY must receive a SPRK from a pixel in direct contact with it.

The temperature of the BRAY is the same as the temperature of the ARAY that created it.

The BRAY that comes out of the ARAY can also have different properties depending on what was used to spark it. If ARAY's .life is set, the resulting BRAY will use ARAY's .life. If ARAY is sparked with PSCN instead of any other conductor, the BRAY only stays for a couple of frames, removes other types of BRAY, looks orange and has tmp of 2. If ARAY is sparked with INST the resulting beam will go through most conductive materials SPRK'ing them all the way. Note, that the beam of BRAY will not be created if a non-transparent particle is directly in front of it (Including metals for INST). By transparent this means any particle that BRAY can pass through. Those materials are covered below.

Uses

ARAY is an indestructible element in the Electronics group, it can receive a SPRK from all of the electric conductors and SWCH. It creates a line of the element BRAY in the direction corresponding to that which it was sparked from (e.g. if the spark hit the left edge of the ARAY, the BRAY would emanate from the right edge). To spark ARAY, the conductor must touch the ARAY particle, unlike other conductors which can SPRK each other over a space of 1 pixel. More than anything, ARAY is creator of the element BRAY, which will be described in depth here.

BRAY

BRAY is the byproduct of ARAY being SPRK'ed by any metal. It is an element that doesn't show in the menu unless you use a mod or script, it is created from SPRK'ed ARAY. Its color is determined by the ratio between the colors on the 30 bit color spectrum. It can hold a 30 bit number and, by default (unless it was created by PSCN), all 30 bits are set giving it its white appearance. You can use FILT to set that value to something different or preform a bitwise operation on it.

The BRAY element rapidly fades after its creation with a life of 30 frames. One way to make it "drawable" is using the particle picker in the "Tools" section. The default way to use the part picker is by pressing down with your scroll wheel or by clicking on it with the left mouse button while holding the Alt button. Unlike neutrons and photons, BRAY passes through all wall elements. It will go off the edge of the screen unless it hits a non-transparent particle. If BRAY hits a conductor, such as METL, then the element gets SPRK'ed. BRAY can also go through ARAY which is useful if you want to spark a PSCN with ARAY pointing right back at it.

If two lines of BRAY collide, they create a 'solid' BRAY at the point which will fade slowly with a life of 1020. When a BRAY fires into another BRAY it will turn into 'solid' BRAY. The 'solid' BRAY is unique in that it is also transparent. So while BRAY is normally not transparent, it will become transparent when they create 'solid' BRAY. Any white BRAY that passes through the 'solid' BRAY will restore the life of the BRAY back to 1020.

PSCN sparking ARAY will create a brown BRAY. This type has a life of 2 which turns to 1 if two BRAY end up in the same space. Brown BRAY is similar to a white BRAY, but doesn't SPRK conductors and doesn't interact with FILT. It doesn't even have a wavelength. It also erases any live white BRAYs, does not create a 'solid' version when colliding with itself.

Transparent Element for BRAY

I don't mean transparent as in see-through. I mean that a BRAY can travel through it. Transparent elements include, 'solid' BRAY, FILT, STOR, ARAY, INWR, WIFI, and activated SWCH. INWR is interesting because it's a SPRK-able conductor that BRAY practically ignores. This could be useful in places where you want to activate ARAY but also can't put down a conductor because it will block another BRAY's path.

BRAY's Interaction with SWCH

Bray can pass through SWCH which is turned on. This means that you can potentially read whether or not a SWCH is on without getting close to it. If SWCH is off it can be turned on with two Brown BRAYs that are directly adjacent to it (shares an edge with it). The same goes for if SWCH is on. The two bray must also be next to each other meaning one bray traveling from the left and one bray traveling from the right would not change it. An example of this being used for electronics can be found in examples.

Invisible DTEC

One of the only reasons people sometimes don't use ARAY as a BRAY beam emitter is because they want to cover up another particle with something transparent. For example, most subframe adders use a technique where DTEC is used inside the path that BRAY goes through. To prevent the BRAY from hitting the DTEC, the DTEC is covered with ARAY. The reason that FILT isn't used for this problem is because it does not like being above other particles in the same stack, thus FILT cannot be used to make other particles transparent. STOR and solid BRAY also work.

Examples

This save shows how to use it for typing.
This save shows using it for displaying pictures.
This save shows it being used for a binary counter.
This computer uses ARAY for all of its function.
Language: [[::Element:ARAY|English]]