Difference between revisions of "Element:ARAY"

From The Powder Toy
Jump to: navigation, search
(Reactions)
(BRAY's Interaction with SWCH)
 
(13 intermediate revisions by 7 users not shown)
Line 38: Line 38:
 
}}
 
}}
  
==Creation==
 
Only created by using the brush or using the console.
 
  
 
== Reactions ==
 
== Reactions ==
Line 46: Line 44:
 
The temperature of the BRAY is the same as the temperature of the ARAY that created it.  
 
The temperature of the BRAY is the same as the temperature of the ARAY that created it.  
  
The {{Material|mat=BRAY}} can also have different properties depending on what was used to spark it. If {{Material|mat=ARAY}} is sparked with {{Material|mat=PSCN}} instead of any other conductor, the BRAY only stays for a couple of frames, removes other types of {{Material|mat=BRAY}}, looks orange and has tmp of 2. If {{Material|mat=ARAY}} is sparked with {{Material|mat=INST}} the resulting beam will go through most conductive materials, (and {{Material|mat=FILT}}) sparkink them in its way. Note, that the beam can not pass through the first pixel in front of the {{Material|mat=ARAY}}, excep if it is {{Material|mat=FILT}}.
+
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.
  
{{Material|mat=ARAY}} is also one of the elements that {{Material|mat=BRAY}} can pass through.
+
== Uses ==
  
== Detailed usage ==
+
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.
  
ARAY is an indestructible element in the Electronics group, it can receive a SPRK from all of the electric conductors and SWCH.
+
===  BRAY  ===
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 bottom-most edge of the ARAY, the BRAY would emanate from the upper-most edge).
+
{{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.
ARAY is very buggy in v. 44.6, but fixed since 45.1.
 
  
To send SPRK to ARAY, the conductor '''must''' touch the ARAY particle, unlike between other conductors where the spark can jump over a space of 1 pixel.
+
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.
  
===  BRAY   ===
+
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.  
BRAY is an element that doesn't show in the menu, it is created from SPRK'ed ARAY. It can be recolored passing through [https://powdertoy.co.uk/Wiki.html?id=elements:solids#filter_filt| FILT].
 
  
The BRAY element rapidly fades after its creation with a life of 30 frames. One way to make it "drawable" is click on it with the left mouse button while holding the Alt button or by clicking on it with the computer mouse scroll. Unlike neutrons and photons, BRAY passes through all wall elements. It will go off the edge of the screen unless it hits any other particle. If BRAY hits a conductor, such as METL, then the element gets SPRK'ed. As of 45.4, BRAY also goes through ARAY, possibly hitting anything directly behind it, SPRK'ing the ARAY. Another feature of BRAY is its conductivity of temperature, anything touching a BRAY will either heat it or be heated by it.
+
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.
  
It also can pass through SWCH which is turned on.
+
==== Transparent Element for BRAY ====
  
If two lines of BRAY collide, they create a 'solid' BRAY at the point which will fade slowly with a life of 1020 frames. Of the colliding BRAY's, one, shot even a frame after the other, will stop at the point will stop at the solid BRAY upon creation. The second emission, however, will proceed through normally. A solid BRAY duplication will only yield a normal BRAY. If more than one ARAY is in front of the conducting particle, several consecutive sparks will make both a normal BRAY and a 'loading' solid BRAY that continues with each re-emission in that direction.  
+
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.
  
PSCN sparking ARAY will create a brown BRAY. This type has a life of 1 or 2, depending on where the location of PSCN is. Brown BRAY is similar to a white BRAY, but is shot twice and doesn't SPRK conductors. Instead, brown BRAY cools down elements that are hit, especially effective when used in a line. It also erases any live white BRAY's, does not create a 'solid' version when colliding with itself, and does not become recolored when passing through FILT.
+
==== BRAY's Interaction with SWCH ====
  
===  Usage  ===
+
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. Nothing, not even Brown BRAY, must occupy either of the SWCH's top corners in order for this reaction to work.
ARAY must be touching a conductor or SWCH to emit a BRAY. BRAY can either hit a conductor and start a SPRK, or hit anything else or the edge harmlessly.
 
  
BRAY can conduct temperature between two elements separated by a square.
+
== Invisible DTEC ==
  
== Uses ==
+
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.
Good for many electronics, circuits and similar devices. Can be used for memory, calculations, animations, picture drawing, etc.
 
  
=== Examples ===
+
== Examples ==
 
{|border="1" cellpadding="5" cellspacing="0"
 
{|border="1" cellpadding="5" cellspacing="0"
 
|-
 
|-
Line 85: 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}}
 
|}
 
|}
  
 
{{Languages}}
 
{{Languages}}
 
[[Category:Work in progress]]
 

Latest revision as of 07:23, 23 May 2024

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. Nothing, not even Brown BRAY, must occupy either of the SWCH's top corners in order for this reaction to work.

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]]