Numworks Epsilon  1.4.1
Graphing Calculator Operating System
modkandinsky.c
Go to the documentation of this file.
1 #include "py/obj.h"
2 #include "py/mphal.h"
3 #include "modkandinsky.h"
4 
8 STATIC MP_DEFINE_CONST_FUN_OBJ_3(kandinsky_draw_string_obj, kandinsky_draw_string);
9 
11  { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_kandinsky) },
12  { MP_ROM_QSTR(MP_QSTR_color), (mp_obj_t)&kandinsky_color_obj },
13  { MP_ROM_QSTR(MP_QSTR_get_pixel), (mp_obj_t)&kandinsky_get_pixel_obj },
14  { MP_ROM_QSTR(MP_QSTR_set_pixel), (mp_obj_t)&kandinsky_set_pixel_obj },
15  { MP_ROM_QSTR(MP_QSTR_draw_string), (mp_obj_t)&kandinsky_draw_string_obj },
16 };
17 
19 
21  .base = { &mp_type_module },
22  .globals = (mp_obj_dict_t*)&kandinsky_module_globals,
23 };
mp_obj_t kandinsky_get_pixel(mp_obj_t x, mp_obj_t y)
STATIC MP_DEFINE_CONST_DICT(kandinsky_module_globals, kandinsky_module_globals_table)
#define MP_ROM_QSTR(q)
Definition: obj.h:241
STATIC const mp_rom_map_elem_t kandinsky_module_globals_table[]
Definition: modkandinsky.c:10
const mp_obj_module_t kandinsky_module
Definition: modkandinsky.c:20
mp_obj_base_t base
Definition: obj.h:814
#define STATIC
Definition: mpconfig.h:1178
mp_obj_t kandinsky_draw_string(mp_obj_t text, mp_obj_t x, mp_obj_t y)
STATIC MP_DEFINE_CONST_FUN_OBJ_3(kandinsky_color_obj, kandinsky_color)
mp_obj_t kandinsky_color(mp_obj_t red, mp_obj_t green, mp_obj_t blue)
mp_obj_t kandinsky_set_pixel(mp_obj_t x, mp_obj_t y, mp_obj_t color)
const mp_obj_type_t mp_type_module
Definition: objmodule.c:94
uint64_t mp_obj_t
Definition: obj.h:39
STATIC MP_DEFINE_CONST_FUN_OBJ_2(kandinsky_get_pixel_obj, kandinsky_get_pixel)