Skip to content

Commit

Permalink
e5/fixed: switching colors green&gold
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo committed Feb 8, 2024
1 parent 144b69a commit f99d592
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/p5components/Rotate_oop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ const Rotate_oop = () => {

const Offset = 42
const Usize = 42
const Bright_gold = p5.color("rgb(250,215,0,100)")
const Bright_green = p5.color("hex('#AAFF00')")
const Colors = [
Bright_gold,
Bright_green
]
const Color = Colors[Math.floor(Math.random() * Colors.length)]

class Something {
constructor(r, c, size) {
Expand Down Expand Up @@ -58,6 +51,14 @@ const Rotate_oop = () => {
*/

p5.createCanvas(800, 800).parent(canvasParentRef)

const Bright_gold = p5.color("rgb(250,215,0,100)")
const Bright_green = p5.color("hex('#AAFF00')")
const Colors = [
Bright_gold,
Bright_green
]
const Color = Colors[Math.floor(Math.random() * Colors.length)]

p5.rectMode(p5.CENTER)
p5.angleMode(p5.DEGREES)
Expand Down

0 comments on commit f99d592

Please sign in to comment.