updated suggested colors, thanks devine and booniepepper!
This commit is contained in:
parent
0e928f46a7
commit
6cb90c4151
|
@ -31,7 +31,6 @@ implement the following concepts as {coloring computers}:
|
|||
### day 2 and onwards
|
||||
* remove square brackets in devices?
|
||||
* recap how to use learn-uxn for the programs there
|
||||
* check current color theme: Background/alpha, Selection, Foreground, Application
|
||||
* update images if needed
|
||||
* check blend mode 0
|
||||
=> https://lists.sr.ht/~rabbits/uxn/%3C692CA0D5-0200-408D-9357-BF0D8887D2BF%40noyu.me%3E Blend mode 0
|
||||
|
@ -42,6 +41,8 @@ implement the following concepts as {coloring computers}:
|
|||
=> https://lists.sr.ht/~rabbits/uxn/%3CCAE2DaSQQMb8XVfsn2NSsXQO+-0m2t4U2GD7nYD3GBUO4GPeTxQ%40mail.gmail.com%3E Whole auto sprite flipping
|
||||
|
||||
* make a folder of examples
|
||||
* whenever we mention the theme loading, link to the suggested palette.
|
||||
|
||||
* 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}
|
||||
|
|
|
@ -162,7 +162,7 @@ the system device is the varvara device with an address of 00. its output ports
|
|||
in uxntal examples we can see its labels defined as follows:
|
||||
|
||||
```
|
||||
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ]
|
||||
|00 @System &vector $2 &pad $6 &r $2 &g $2 &b $2
|
||||
```
|
||||
|
||||
we will ignore the first elements for the moment, and focus on the color components.
|
||||
|
@ -171,7 +171,7 @@ we will ignore the first elements for the moment, and focus on the color compone
|
|||
|
||||
the varvara screen device can only show a maximum of four colors at a time.
|
||||
|
||||
these four colors are called color 0, color 1, color 2 and color 3.
|
||||
these four colors are called color0, color1, color2 and color3.
|
||||
|
||||
each color has a total depth of 12 bits: 4 bits for the red component, 4 bits for the green component, and 4 bits for the blue component.
|
||||
|
||||
|
@ -183,28 +183,28 @@ we could write that as follows:
|
|||
( hello-screen.tal )
|
||||
|
||||
( devices )
|
||||
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ]
|
||||
|00 @System &vector $2 &pad $6 &r $2 &g $2 &b $2
|
||||
|
||||
( main program )
|
||||
|0100
|
||||
( set system colors )
|
||||
#2ce9 .System/r DEO2
|
||||
#01c0 .System/g DEO2
|
||||
#2ce5 .System/b DEO2
|
||||
#2eef .System/r DEO2
|
||||
#1eb8 .System/g DEO2
|
||||
#1e2e .System/b DEO2
|
||||
```
|
||||
|
||||
how would we read what those literal shorts mean?
|
||||
|
||||
we can read each of the colors vertically, from left to right:
|
||||
we can read each of the colors vertically, from left to right. therefore:
|
||||
|
||||
* color 0 would be red: 2, green: 0, blue: 2 ( #220022 in hex color notation, dark purple )
|
||||
* color 1 would be red: c, green: 1, blue: c ( #cc11cc in hex color notation, magenta )
|
||||
* color 2 would be red: e, green: c, blue: e ( #eeccee in hex color notation, light pink )
|
||||
* color 3 would be red: 9, green: 0, blue: 5 ( #990055 in hex color notation, dark red )
|
||||
* color0 would have: red: 2, green: 1, blue: 1 ( #221111 in hex color notation, brown)
|
||||
* color1 would be red: e, green: e, blue: e ( #eeeeee in hex color notation, white )
|
||||
* color2 would be red: e, green: b, blue: 2 ( #eebb22 in hex color notation, amber )
|
||||
* color3 would be red: f, green: 8, blue: e ( #ff88ee in hex color notation, pink )
|
||||
|
||||
if we run the program now we'll see a dark purple screen, instead of black as what we had before.
|
||||
if we run the program now we'll see a brown screen, instead of black as what we had before.
|
||||
|
||||
try changing the values of color 0, i.e. the first column, and see what happens :)
|
||||
try changing the values of color0, i.e. the first column, and see what happens :)
|
||||
|
||||
# the screen device
|
||||
|
||||
|
|
Loading…
Reference in New Issue