module Paint:sig
..end
Paint
contains the paint
type and utilities for manipulating paint
s.
This module should not be used directly by the sketch; there are functions
in Shape
that handle setting the stroke, fill, etc.
type
paint = private {
|
fill : |
|
stroke : |
|
stroke_weight : |
|
stroke_cap : |
|
stroke_join : |
}
The type of paint, used by shapes to draw to the canvas.
val create : paint
create
is the default paint.
type
paint_update =
| |
Fill of |
| |
Stroke of |
| |
Stroke_weight of |
| |
Stroke_cap of |
| |
Stroke_join of |
| |
Stroke_weight_scale of |
The type of a layerable single-attribute paint change.
val apply_paint_update : paint_update -> paint -> paint
apply_paint_update update paint
is paint
with update
applied. For
example, apply_paint_update (Stroke None) paint
is paint
with
no stroke.