Element:ARAY

From The Powder Toy
Revision as of 02:36, 11 May 2023 by MachineMan (talk | contribs) (Transparent Element for BRAY)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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]]