sayoi7799/moon_vegalite/sketch does not have a README file

    FillStyle

    fillStyle. rough.js treats unknown names as hachure.

    SketchOptions

    pub struct SketchOptions {
    seed : Int
    roughness : Double
    bowing : Double
    fill_style :
    FillStyle

    hachure_gap : Double?
    fill_weight : Double?
    fixed_decimals : Int?
    }

    Options of the hand-drawn style.

    SketchOptions::new

    fn SketchOptions::new(seed? : Int, roughness? : Double, bowing? : Double, fill_style? :
    FillStyle
    , hachure_gap? : Double, fill_weight? : Double, fixed_decimals? : Int) -> SketchOptions

    shape_drawer

    fn shape_drawer(options : SketchOptions) -> ((
    Shape
    ) -> String?)

    The function to pass as shapes to @svg.SvgOptions::new.

    shape_seed

    fn shape_seed(base : Int, position : Array[Int]) -> Int

    The seed of the shape at position (see @svg.Shape): the base seed is hashed together with every index of the position, and the result lies in [1, 2^31 - 2], the range of rough.js' generator (0 would mean "random"). Seeds are hashed, not added, because the first numbers the generator draws from neighbouring seeds are almost equal.

    Source Files