graphic design tool
git clone https://git.lucas.co/cce-designer.git
nodes/page_grid.json (1.5K)
1 {
2 "name": "Page Grid",
3 "type": "page_grid",
4 "inputs": 1,
5 "outputs": 1,
6 "params": [
7 { "name": "input", "label": "Input", "type": "node", "default": "", "description": "The page node (or page chain) whose image this grid is drawn onto. Without one the node produces nothing." },
8 { "name": "cell_size", "label": "Cell Size", "type": "float", "default": "0.25", "description": "Spacing between grid lines, in the page's Units. Lines start at the top-left corner; smaller values give a denser grid, never finer than one pixel." },
9 { "name": "line_width", "label": "Line Width", "type": "float", "default": "0.01", "description": "Thickness of each grid line, in the page's Units, centred on its coordinate. Very small values are drawn as a hairline at least half a pixel wide." },
10 { "name": "line_color", "label": "Line Color", "type": "float3", "default": "0.00:0.00:0.00", "min": 0.0, "max": 1.0, "description": "Colour of the grid lines, drawn fully opaque over the page." },
11 { "name": "fill_cells", "label": "Fill Cells", "type": "toggle", "default": "false", "description": "When on, fills the whole page with Cell Color before ruling the lines, covering what the input had drawn. When off, lines are drawn over the input as is.", "group": "fill" },
12 { "name": "cell_color", "label": "Cell Color", "type": "float3", "default": "1.00:1.00:1.00", "min": 0.0, "max": 1.0, "show_when": "fill_cells == true", "description": "Colour the page is filled with under the grid lines when Fill Cells is on.", "group": "fill" }
13 ]
14 }