Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 7x 14x 4x 10x 10x 10x | import { ColorChangeStrategy } from "./colorChangeStrategy"
export class PositivePrintColorChangeStrategy implements ColorChangeStrategy {
execute(numberOfColors, mesh) {
if (numberOfColors < 4) {
return false
}
const colorArray = [0, 1, 0]
mesh.material.color.setRGB(colorArray[0], colorArray[1], colorArray[2])
return true
}
}
|