It works
This commit is contained in:
+6
-2
@@ -4,8 +4,12 @@ export default class SandPainter {
|
||||
private color: number
|
||||
private gain: number
|
||||
|
||||
constructor(state: State) {
|
||||
this.color = state.getRandomColor()
|
||||
constructor(color: number) {
|
||||
this.color = color
|
||||
this.gain = Math.random() / 10
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user