Skip to content
Snippets Groups Projects
Verified Commit 6a4fbb04 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: new set interval

parent 98492c22
No related branches found
No related tags found
1 merge request!9Version 0.4.0 🍾
Pipeline #1341 passed
......@@ -71,9 +71,9 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
setBackgroundIndex((backgroundIndex + 1) % backgrounds.length);
};
const onDrawHAndler = (handler: DrawHandler) => {
setTimeout(() => {
setInterval(() => {
handler(emulator.getImageBuffer(), PixelFormat.RGB);
}, 3000);
}, 1000);
};
useEffect(() => {
document.body.style.backgroundColor = `#${getBackground()}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment