Tweaked snippet layout

This commit is contained in:
2023-02-06 12:21:11 -06:00
parent 0c3a290ce8
commit 51c690e263
4 changed files with 31 additions and 22 deletions
+3 -3
View File
@@ -11,9 +11,9 @@ export default function({}) {
const blah = useRef(0)
const drawFrame = useCallback(() => {
for(let n = 0; n < 160 * 120; n++) {
cpu.current.poke(0x10000 + n, Math.random() * 256)
}
// for(let n = 0; n < 160 * 120; n++) {
// cpu.current.poke(0x10000 + n, n % 256 /* Math.random() * 256 */)
// }
display.current.draw(cpu.current, ctx.current)
request.current = requestAnimationFrame(drawFrame)
}, [])