Skip to content

Commit f655f0f

Browse files
committed
Fix Color class not imported to p5.Element
1 parent ae508c7 commit f655f0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dom/p5.Element.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import { File } from './p5.File';
8+
import { Color } from '../color/p5.Color';
89
import * as constants from '../core/constants';
910

1011
class Element {
@@ -1213,7 +1214,7 @@ class Element {
12131214
style(prop, val) {
12141215
const self = this;
12151216

1216-
if (val instanceof p5.Color) {
1217+
if (val instanceof Color) {
12171218
val =
12181219
'rgba(' +
12191220
val.levels[0] +

0 commit comments

Comments
 (0)