plottery_runtime 0.19.1

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 ProjectParamVec {
    pub item_prototype: Box<ProjectParamValue>,
    pub items: Vec<ProjectParamValue>,
}

impl ProjectParamVec {
    pub fn new(item_prototype: ProjectParamValue, items: Vec<ProjectParamValue>) -> Self {
        Self {
            item_prototype: Box::new(item_prototype),
            items,
        }
    }
}