🐢
🐇
![Pallet Color](./static/img/pallet-color.png)
Reference | Example |
---|---|
draw_line(x0, y0, x1, y1, color) | draw_line(0, 0, 100, 200, 12) |
draw_circle(x, y, radius, color) | draw_circle(50, 50, 30, 2) |
draw_rectangle(x, y, width, height, color) | draw_rectangle(60, 60, 50, 50, 0) |
draw_sprite(x, y, index) | draw_sprite(64, 64, 0) |
clear() | clear() |
fill(color, opacity) | fill(1, 0.5) |
get_mouse() | get_mouse()["x"] |
get_keys() | get_keys()["left"] |
play_sound(index) | play_sound(3) |
get_keys() | get_keys()["left"] |
put_pixel(x, y, color) | put_pixel(64, 64, 4) |
randint(min, max) | randint(1, 5) |
random() | random() |
sin(r) | sin(pi/2) |
cos(r) | cos(pi/4) |
tan(r) | tan(0) |
atan(r) | atan(pi) |
atan2(r) | atan2(pi*2) |