Skip to content

Instantly share code, notes, and snippets.

-----C++------
// I really just picked one of the functions :P
static mp_obj_t framebuffer_transformPoint(mp_uint_t n_args, const mp_obj_t *args)
{
Window* window = NULL;
matrix_stack_2d* stack = NULL;
int paramOffset = 0;
if (MP_OBJ_IS_STR(args[0])) {
@robotman2412
robotman2412 / boats.py
Last active July 22, 2020 13:51
My matrix multiplication, used to row a boat.
import display, math, time, buttons
def drawBoat():
display.pushMatrix()
drawBoatBottom(0x000000)
display.translate(-4, 0)
drawBoatMast(0x000000, 0x000000)
display.popMatrix()
@robotman2412
robotman2412 / boat.py
Last active August 12, 2020 07:31
Drawing a boat, on a wave: simplified
import display, math
def drawBoat():
display.pushMatrix()
drawBoatBottom(0x000000)
display.translate(-4, 0)
drawBoatMast(0x000000, 0x000000)
display.popMatrix()