# Is it possible to write directly to screen (pixels) on the Arcade?

**URL:** https://forum.makecode.com/t/is-it-possible-to-write-directly-to-screen-pixels-on-the-arcade/510
**Category:** Arcade
**Created:** [September 4, 2019, 5:23am UTC](https://forum.makecode.com/t/is-it-possible-to-write-directly-to-screen-pixels-on-the-arcade/510 "2019-09-04T05:23:22Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [September 4, 2019, 5:16pm UTC](https://forum.makecode.com/t/is-it-possible-to-write-directly-to-screen-pixels-on-the-arcade/510/4 "2019-09-04T17:16:49Z")

</div>

If you are in JavaScript, there are two ways to do it:

```auto
// This callback will run every frame after the sprites have been drawn
// so you can draw to the screen and not be overwritten
game.onShade(() => {
    screen.setPixel(0, 0, 1)
})

// Creates a "sprite-ish" object where you implement the draw method
// (only available in beta beta)
scene.createRenderable(0, (target: Image, camera: scene.Camera) => {
    target.setPixel(0, 0, 1)
})

```

The renderable approach is nice because it handles sorting for you (the first argument is the z-index). It’s currently only available in beta beta ([https://arcade.makecode.com/beta](https://arcade.makecode.com/beta))

---

_[View the full topic](https://forum.makecode.com/t/is-it-possible-to-write-directly-to-screen-pixels-on-the-arcade/510)._
