Skip to content

Commit

Permalink
Merge pull request #7406 from limzykenneth/2.0-color
Browse files Browse the repository at this point in the history
[p5.js 2.0] Color module rewrite
  • Loading branch information
limzykenneth authored Dec 17, 2024
2 parents 2e8cdaf + 8070a04 commit 90df6cc
Show file tree
Hide file tree
Showing 26 changed files with 1,683 additions and 1,326 deletions.
1,138 changes: 589 additions & 549 deletions src/color/creating_reading.js

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions src/color/p5.Color.culori.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
class Color {
_color;
maxes;
mode;
array;

static addColorMode(mode, definition){

}

constructor(vals){

}

toString(){

}

setRed(new_red){

}

setGreen(new_green){

}

setBlue(new_blue){

}

setAlpha(new_alpha){

}

_getRed(){

}

_getGreen(){

}

_getBlue(){

}

_getAlpha(){

}

_getHue(){

}

_getSaturation(){

}

_getBrightness(){

}

_getLightness(){

}
}
Loading

0 comments on commit 90df6cc

Please sign in to comment.