# How do you draw single pixels

**URL:** https://forum.makecode.com/t/how-do-you-draw-single-pixels/21511
**Category:** Help
**Tags:** graphics-and-math
**Created:** [July 26, 2023, 5:33pm UTC](https://forum.makecode.com/t/how-do-you-draw-single-pixels/21511 "2023-07-26T17:33:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![broc](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@broc](https://forum.makecode.com/u/broc)
#### Post date: [July 26, 2023, 5:33pm UTC](https://forum.makecode.com/t/how-do-you-draw-single-pixels/21511/1 "2023-07-26T17:33:29Z")

</div>

how do you draw single pixels for dummies’ I’m working on a game right now and I need some help. Thank you.

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [July 26, 2023, 5:35pm UTC](https://forum.makecode.com/t/how-do-you-draw-single-pixels/21511/2 "2023-07-26T17:35:44Z")

</div>

There’s a `set image color at x [0] y [0] to [color]` block in the image category (under advanced), but an important thing to note is that it will only draw once – if you want it to stay on screen, it needs to be drawn every time the screen is redrawn to update sprites / etc. In my [https://github.com/jwunderl/arcade-sprite-util](https://github.com/jwunderl/arcade-sprite-util) extension I made a block `render on z-index [number] to [screen]` to make this easier to do – this will give you an opportunity to draw at the same time sprites do every frame.

> **[render on z index](https://arcade.makecode.com/S39387-25078-50429-19816)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![broc](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@broc](https://forum.makecode.com/u/broc)
#### Post date: [July 26, 2023, 6:00pm UTC](https://forum.makecode.com/t/how-do-you-draw-single-pixels/21511/3 "2023-07-26T18:00:21Z")

</div>

actually, never mind that I know how to do that. I meant how do you make a sprite leave a trail behind it.

---

<div class="post-metadata">

### Author: ![broc](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@broc](https://forum.makecode.com/u/broc)
#### Post date: [July 26, 2023, 6:00pm UTC](https://forum.makecode.com/t/how-do-you-draw-single-pixels/21511/4 "2023-07-26T18:00:52Z")

</div>

so how do a make a line follow a sprite
