plottery_runtime 0.19.0

What a Plottery project compiles against: param types, the PlotteryParams derive and the project's entry point. Plottery is a creative coding framework for generative vector graphics and pen plotting.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

use super::project_param_value::ProjectParamValue;

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct ProjectParamOptional {
    pub enabled: bool,
    pub value: Box<ProjectParamValue>,
}

impl ProjectParamOptional {
    pub fn new(enabled: bool, value: ProjectParamValue) -> Self {
        Self {
            enabled,
            value: Box::new(value),
        }
    }
}