View boat.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import display, math | |
def drawBoat(): | |
display.pushMatrix() | |
drawBoatBottom(0x000000) | |
display.translate(-4, 0) | |
drawBoatMast(0x000000, 0x000000) | |
display.popMatrix() |
View boats.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import display, math, time, buttons | |
def drawBoat(): | |
display.pushMatrix() | |
drawBoatBottom(0x000000) | |
display.translate(-4, 0) | |
drawBoatMast(0x000000, 0x000000) | |
display.popMatrix() |
View gist:80fc6c8d1bdcfa93ebb3eb30515ee185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----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])) { |