h6. [[OS SWI Calls]] h6(. » [[OS_SpriteOp]] h6((. » OS_SpriteOp 42 - Write pixel colour h2. OS_SpriteOp 42 - Write pixel colour h5. (SWI &2E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 42 (Reason code) + [[OS_SpriteOp|Area value]]| |<^. R1 |<^. Unused/[[Format Of Sprite Area|Sprite area]] (as defined by area value in R0) | |<^. R2 |<^. Sprite name/[[Format Of Sprite|pointer]] (as defined by area value in R0) | |<^. R3 |<^. X coordinate | |<^. R4 |<^. Y coordinate | |<^. R5 |<^. Pixel colour | |<^. R6 |<^. Pixel tint | |_<^{width:4em}. Exit | | |\2<^. All registers preserved| h4. Use This call allows the colour of a sprite pixel to be written. h4. Notes Coordinates are specified in pixels, with (0,0) being the bottom-left corner of the sprite. For 256 colour sprites which lack a full palette, R5 should contain the pixel colour/palette index (0-63) and R6 the tint value (0, 64, 128 or 192). For all other sprites, R5 should be the pixel colour/palette index and R6 will be ignored. h4. See also * [[Format Of Sprite]] * [[Format Of Sprite Area]] * [[OS_SpriteOp]] * [[OS_SpriteOp 41|OS_SpriteOp 41 - Read pixel colour]]