Draw a pixel art.
You can define pixel arts (6x6 dots) of characters with characters array. Each letter represents a pixel color ( l: black, r: red, g: green, b: blue, y: yellow, p: purple, c: cyan, L: light_black, R: light_red, G: light_green, B: light_blue, Y: light_yellow, P: light_purple, C: light_cyan ).
characters
characters = [` r rrrrrrrr grr grrrrrrrrr rr`,
Pixel arts are assigned from 'a'. char("a", 0, 0) draws the character defined by the first element of the characters array.
char("a", 0, 0)
characters array can also specify external image files as corresponding pixel art.
characters = ["./jugglingchain/images/background.png","./jugglingchain/images/ball.png","./jugglingchain/images/arrow.png",]
Information about objects that collided during drawing.
Optional
Generated using TypeDoc
Draw a pixel art.
You can define pixel arts (6x6 dots) of characters with
characters
array. Each letter represents a pixel color ( l: black, r: red, g: green, b: blue, y: yellow, p: purple, c: cyan, L: light_black, R: light_red, G: light_green, B: light_blue, Y: light_yellow, P: light_purple, C: light_cyan ).Pixel arts are assigned from 'a'.
char("a", 0, 0)
draws the character defined by the first element of thecharacters
array.characters
array can also specify external image files as corresponding pixel art.Returns
Information about objects that collided during drawing.