Skip to content

Commit 2890d64

Browse files
authored
Merge pull request #7673 from processing/fix/default-fill
Fix default fill color blowing out lighting in WebGL mode
2 parents 2e7cf1a + 20b8d76 commit 2890d64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/color/p5.Color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class Color {
169169

170170
// Get raw coordinates of underlying library, can differ between libraries
171171
get _array() {
172-
return [...this._color.coords, this._color.alpha];
172+
return this._getRGBA();
173173
}
174174

175175
array(){

src/core/p5.Renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Renderer {
7474
this.states = new States(Renderer.states);
7575

7676
this.states.strokeColor = new Color([0, 0, 0]);
77-
this.states.fillColor = new Color([255, 255, 255]);
77+
this.states.fillColor = new Color([1, 1, 1]);
7878

7979
this._pushPopStack = [];
8080
// NOTE: can use the length of the push pop stack instead

0 commit comments

Comments
 (0)