starting with drawing pixels, minor changes

This commit is contained in:
sejo 2024-03-16 19:15:05 +01:00
parent a720c15e72
commit f729efed18
3 changed files with 13 additions and 9 deletions

View File

@ -16,7 +16,7 @@ in reverse chronological order:
## 12024-03-14: uxn tutorial day 2 (part 1)
in this stream, we went through the first part of {uxn tutorial day 2} and decided to split it into two parts: morning and evening. this change will be implemented in the next stream.
in this stream, we went through the first part of {uxn tutorial day 2} and decided to split it into two parts: morning and evening.
we updated the colors in all the examples (to do: update the screenshots) to have them further differentiated.

View File

@ -29,9 +29,8 @@ implement the following concepts as {coloring computers}:
## tutorial
### day 2 and onwards
* remove square brackets in devices?
* divide into morning and evening
* update images if needed
* remove square brackets in devices
* update images
* check blend mode 0
=> https://lists.sr.ht/~rabbits/uxn/%3C692CA0D5-0200-408D-9357-BF0D8887D2BF%40noyu.me%3E Blend mode 0
=> https://lists.sr.ht/~rabbits/uxn/%3CCAE2DaSQuj%3DC8e7ofV3+4H6MaTOhtD_wrFWihhYtCuYiEVtV6WQ%40mail.gmail.com%3E Massive tiny change coming to Varvara's Screen device
@ -42,11 +41,14 @@ implement the following concepts as {coloring computers}:
* make a folder of examples
* whenever we mention the theme loading, link to the suggested palette.
* replace intro to colors with a table.
* replace {uxn tutorial day 2} intro to colors with a table.
* format and update {uxn running}
### further changes
* {uxn tutorial day 2}: divide into morning and evening
* include uxn5 in the web tutorial so that code can be run from there
=> https://git.sr.ht/~rabbits/uxn5 uxn5
* format and update {uxn running}
## traducción:

View File

@ -488,17 +488,19 @@ nice, isn't it? the operations now look clearer! and if we wanted to have this l
try writing the macro and using it in different positions of the screen!
afterwards, i recommend you to take a break, as we have covered a lot of ground already!
# drawing sprites
now, we'll see how to leverage the built-in support for "sprites" in the varvara screen device in order to draw many pixels at once!
drawing one pixel at a time can be fun, but the varvara screen device has a built-in support for "sprites". we'll see how to leverage that capability in order to draw many pixels at once!
the varvara screen device allows us to use and draw tiles of 8x8 pixels, also called sprites.
there are two posible modes: 1bpp (1 bit per pixel), and 2bpp (2 bits per pixel).
1bpp tiles use two colors, and they are encoded using 8 bytes; using one bit per pixel means that we can only encode if that pixel is using one color, or the other.
1bpp tiles use two colors and they are encoded using 8 bytes. using one bit per pixel means that we can only encode if that pixel is using one color or the other.
2bpp tiles use four colors and they are encoded using 16 bytes; using two bits per pixel means we can encode which one of the four available colors the pixel has.
2bpp tiles use four colors and they are encoded using 16 bytes. using two bits per pixel means we can encode which one of the four available colors the pixel has.
we will be storing and accessing these tiles from the main memory.