canvas 
Vars | |
canvas_color | empty canvas color |
---|---|
last_patron | reference to the last patron's mind datum, used to allow them (and no others) to change the frame before the round ends. |
no_save | boolean that blocks persistence from saving it. enabled from printing copies, because we do not want to save copies. |
pixels_per_unit | How big the grid cells that compose the painting are in the UI (multiplied by zoom). This impacts the size of the UI, so smaller values are generally better for bigger canvases and vice-versa |
show_grid | Whether a grid should be shown in the UI if the canvas is editable and the viewer is holding a painting tool. |
used | Is it clean canvas or was there something painted on it at some point, used to decide when to show wip splotch overlay |
zoom_by_observer | A list that keeps track of the current zoom value for each current viewer. |
Procs | |
canvas_fill | A proc that adopts a span-based, 4-dir (correct me if I'm wrong) flood fill algorithm used by the bucked tool in the UI, to facilitate coloring larger portions of the canvas. If you have never used the bucket/flood tool on an image editor, I suggest you do it now so you know what I'm basically talking about. |
get_paint_tool_medium | Generates medium description |
Var Details
canvas_color 
empty canvas color
last_patron 
reference to the last patron's mind datum, used to allow them (and no others) to change the frame before the round ends.
no_save 
boolean that blocks persistence from saving it. enabled from printing copies, because we do not want to save copies.
pixels_per_unit 
How big the grid cells that compose the painting are in the UI (multiplied by zoom). This impacts the size of the UI, so smaller values are generally better for bigger canvases and vice-versa
show_grid 
Whether a grid should be shown in the UI if the canvas is editable and the viewer is holding a painting tool.
used 
Is it clean canvas or was there something painted on it at some point, used to decide when to show wip splotch overlay
zoom_by_observer 
A list that keeps track of the current zoom value for each current viewer.
Proc Details
canvas_fill
A proc that adopts a span-based, 4-dir (correct me if I'm wrong) flood fill algorithm used by the bucked tool in the UI, to facilitate coloring larger portions of the canvas. If you have never used the bucket/flood tool on an image editor, I suggest you do it now so you know what I'm basically talking about.
@ param x The point on the x axys where we start flooding our canvas. The arg is later used to store the current x @ param y The point on the y axys where we start flooding the canvas. The arg is later used to store the current y @ param new_color The new color that floods over the old one
get_paint_tool_medium
Generates medium description