mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 23:04:04 +09:00
reading image files in graphics adapter
This commit is contained in:
14
assets/disk0/make4096pal.js
Normal file
14
assets/disk0/make4096pal.js
Normal file
@@ -0,0 +1,14 @@
|
||||
let s = []
|
||||
for (let r=0;r<16;r++) {
|
||||
for (let g=0;g<16;g++) {
|
||||
for (let b=0;b<16;b++) {
|
||||
let rb = r*16+r
|
||||
let gb = g*16+r
|
||||
let bb = b*16+r
|
||||
s.push(rb,gb,bb)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
filesystem.open("A","4096.data","W")
|
||||
filesystem.writeBytes("A",s)
|
||||
Reference in New Issue
Block a user