= 0
UNASSIGNED = 1
VOID = 2
SOLID = 3
PIXEL_IMPOSSIBLE = 4
PIXEL_EXISTING = 5
PIXEL_POSSIBLE = 6
PIXEL_REQUIRED = 7
TOUCH_REQUIRED = 8
TOUCH_INVALID = 9
TOUCH_EXISTING = 10
TOUCH_VALID = 11
TOUCH_FREE = 12 TOUCH_RESOLVING
Design
All design-related functions
Design
Design (void_pixels:jax.Array, solid_pixels:jax.Array, void_touches:jax.Array, solid_touches:jax.Array)
new_design
new_design (shape)
design_mask
design_mask (design, dtype=<class 'float'>)
visualize
visualize (design, grid=True)
= notched_square_brush(5, 1)
my_brush show_mask(my_brush)
No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
= lambda: new_design((6, 8))
step1 step1()
add_void_touch
add_void_touch (design, brush, pos)
= lambda: add_void_touch(step1(), my_brush, (0, 6))
step2 step2()
take_free_void_touches
take_free_void_touches (design, brush)
= lambda: take_free_void_touches(step2(), my_brush)
step3 step3()
invert_design
invert_design (design)
invert_design(step3())
add_solid_touch
add_solid_touch (design, brush, pos)
take_free_solid_touches
take_free_solid_touches (design, brush)
= lambda: add_solid_touch(step3(), my_brush, (0, 0))
step4 step4()
= lambda: add_void_touch(step4(), my_brush, (4, 6))
step5 step5()
= lambda: take_free_void_touches(step5(), my_brush)
step6 step6()
= lambda: add_void_touch(step6(), my_brush, (4, 4))
step7 step7()
= lambda: take_free_void_touches(step7(), my_brush)
step8 step8()
= lambda: add_void_touch(step8(), my_brush, (5, 0))
step9 step9()
= lambda: take_free_void_touches(step9(), my_brush)
step10 step10()
= lambda: add_void_touch(step10(), my_brush, (2, 5))
step11 step11()
= lambda: take_free_void_touches(step11(), my_brush)
step12 step12()