Pixelet
language
English
日本語
Docs
FAQ
Contact
Download
language
English
日本語
circle
rect
roundRect - Rounded Rect
line
arc
polygon
fill
stroke
rotate
text
Advanced - Scripting
circle
Syntax
circle(x, y, width, height)
Example
circle(2, 4, 5, 10) stroke('black')
rect
Syntax
rect(x, y, width, height)
Example
rect(2, 4, 15, 10) stroke('black')
roundRect - Rounded Rect
Syntax
roundRect(x, y, width, height)
Example
roundRect(2, 4, 15, 10) stroke('black')
line
Syntax
line(x1, y1, x2, y2)
Example
line(2, 4, 12, 14) stroke('black')
arc
Syntax
arc(x, y, r, angle1, angle2)
Example
arc(10, 10, 5, 0, 180) stroke('black')
polygon
Syntax
polygon([x1, y1, x2, y2, x3, y3,...])
Example
polygon([10, 2, 2, 10, 10, 10]) stroke('black')
fill
Syntax
fill(color)
Example
circle(2, 4, 5, 5) fill('red')
stroke
Syntax
stroke(color)
Example
circle(2, 4, 5, 5) stroke('red')
rotate
Syntax
rotate(angle)
Example
line(0, 16, 32, 16) rotate(90) line(0, 16, 32, 16) stroke('black')
text
Syntax
text(x, y, string, color, fontSize)
Example
text(0, 0, 'A', 'black', 32)
Advanced - Scripting
Syntax
Any JavaScript code
Example
for (let i = 0; i < 6; i++) { rotate(30) line(0, 16, 32, 16) } stroke('black')
© 2022 tnantoka