Skip to content

Commit

Permalink
trivial change
Browse files Browse the repository at this point in the history
  • Loading branch information
kfahn22 committed Oct 11, 2024
1 parent bf207c2 commit 300e0b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/Shapes-playground/palette-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PaletteDropdown {
"purple",
"raspberry"
];
this.color;
this.color = null;

// Add options to the dropdown
this.optionsArray.forEach((option) => this.dropdown.option(option));
Expand Down
8 changes: 4 additions & 4 deletions code/Shapes-playground/sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// https://github.com/kfahn22/L-System-Pattern-Generator
// https://editor.p5js.org/kfahn/sketches/BK_t2uB-l
// Code created as a tool for https://github.com/kfahn22/L-System-Pattern-Generator

// Control variables
let controls;
Expand Down Expand Up @@ -73,7 +74,7 @@ function setup() {
"white",
"Background Color"
);

// Add the dropdowns, sliders, and checkboxes
shapeSystems.push(
addShapeSystem(10, sliderValues0, shapeChoice0, strokeChoice0, fillChoice0)
Expand Down Expand Up @@ -111,6 +112,7 @@ function updateValues(shapeSystem) {
}

function handleInput(shapeSystem) {
backgroundDropdown.dropdown.changed(reset);
let dropdowns = shapeSystem[1];
let checkBoxes = shapeSystem[2];
let sliders = shapeSystem[4];
Expand Down Expand Up @@ -198,7 +200,6 @@ function setShape(shapeSystems) {
shapeData[2] = dropdowns;
shapeData[3] = colorChoices;
shapeSystemValues[i] = shapeData;

}

let shapes = [];
Expand Down Expand Up @@ -285,7 +286,6 @@ function updateMessage(messages, n) {
return message;
}


// This function adds a message if the choosen shape is a function of the parameters (a, b, m, n, n1, n2, n3)
function addMessages(message) {
// If there's an old message, remove it
Expand Down

0 comments on commit 300e0b8

Please sign in to comment.