canvas
![code/modules/art/paintings.dm 39](git.png)
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 viceversa |
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 | |
get_paint_tool_medium | Generates medium description |
select_new_frame | We give the curator(s) a cut (unless they're themselves the patron), as it's their job to curate and promote art among other things. |
ui_close | this is here to allow observers to zoom in and out but not do anything else. |
Var Details
canvas_color
![code/modules/art/paintings.dm 50](git.png)
empty canvas color
last_patron
![code/modules/art/paintings.dm 62](git.png)
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
![code/modules/art/paintings.dm 59](git.png)
boolean that blocks persistence from saving it. enabled from printing copies, because we do not want to save copies.
pixels_per_unit
![code/modules/art/paintings.dm 74](git.png)
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 viceversa
show_grid
![code/modules/art/paintings.dm 55](git.png)
Whether a grid should be shown in the UI if the canvas is editable and the viewer is holding a painting tool.
used
![code/modules/art/paintings.dm 52](git.png)
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
![code/modules/art/paintings.dm 77](git.png)
A list that keeps track of the current zoom value for each current viewer.
Proc Details
get_paint_tool_medium
Generates medium description
select_new_frame
We give the curator(s) a cut (unless they're themselves the patron), as it's their job to curate and promote art among other things.
ui_close
this is here to allow observers to zoom in and out but not do anything else.