Behavior : Pixel cache

Author:Rex.Rainbow

Download

Properties

Actions

Cache

Action:Set red

  • Set red value at point in cache.
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas
    • R ( number ) : Red value, 0-255

Action:Set green

  • Set green value at point in cache.
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas
    • G ( number ) : Green value, 0-255

Action:Set blue

  • Set blue value at point in cache.
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas
    • B ( number ) : Blue value, 0-255

Action:Set alpha

  • Set alpha value at point in cache.
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas
    • A ( number ) : Alpha value, 0-1

Action:Set RGBA

  • Set RGBA value at point in cache.
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas
    • R ( number ) : Red value, 0-255
    • G ( number ) : Green value, 0-255
    • B ( number ) : Blue value, 0-255
    • A ( number ) : Alpha value, 0-1

Cache -> canvas

Action:Write back

  • Write cache back to canvas.

Canvas -> cache

Action:Cache all

  • Cache color of all pixels.

Action:Cache area

  • Cache color at an area.
    • Left-top X ( number ) : X co-ordinate of left-top point.
    • Left-top Y ( number ) : Y co-ordinate of left-top point.
    • Width ( number ) : Width.
    • Height ( number ) : Height.

Expressions

Area

Expression:LeftX

  • Get left X of cached area

Expression:RightX

  • Get right X of cached area

Expression:TopY

  • Get top Y of cached area

Expression:BottomY

  • Get bottom Y of cached area

Color

Expression:rgbaAt

  • This gives the rgba color at a given position on the canvas.
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas

Expression:redAt

  • This gives the red component of the color at a given position on the canvas. (0-255)
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas

Expression:greenAt

  • This gives the green component of the color at a given position on the canvas. (0-255)
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas

Expression:blueAt

  • This gives the blue component of the color at a given position on the canvas. (0-255)
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas

Expression:alphaAt

  • This gives the alpha component of the color at a given position on the canvas. (0.0-1.0)
    • x ( number ) : x position on canvas
    • y ( number ) : y position on canvas

For Each point

Expression:CurX

  • Get the current x position in cache in a For Each loop.

Expression:CurY

  • Get the current y position in cache in a For Each loop.

Expression:CurR

  • Get red value in current position in cache in a For Each loop. (0-255)

Expression:CurG

  • Get green value in current position in cache in a For Each loop. (0-255)

Expression:CurB

  • Get blue value in current position in cache in a For Each loop. (0-255)

Expression:CurA

  • Get alpha value in current position in cache in a For Each loop. (0.0-1.0)

Conditions

For each point

Condition:For each point

  • Repeat the event for each point in cache.
    • Direction ( Combo ) : Scan direction.
      • Options : ["Top to bottom","Bottom to top","Left to right","Right to left"]