Comments (6)
Just in case/as a workaround, C64Studio may not always preserve the same bit pattern for a color between 8x8 blocks. You can force a certain bit pattern in the second tab.
from c64studio.
Regarding the second issue - it seems to be for the imported image. If I create another graphicscreen and do full copy/paste, the color picker works as expected.
from c64studio.
Hmm.. there is something with the import. Once I've imported the image (png of a MC c64 image), I do a full copy/paste to another graphicscreen. The image looks as it should be, colors are correct and the c64 color limits are considered. But something is broken with the colors when doing !media.
!media "gfx_ptower_big.graphicscreen",bitmapscreencolor
OR
!media "gfx_ptower_big.graphicscreen",color
!media "gfx_ptower_big.graphicscreen",screen
!media "gfx_ptower_big.graphicscreen",bitmap
In both cases, the color and screen data is incorrect. Bitmap is correct. The colors are switched as I described in the first comment (eg. $1 -> $b)
NOTE: If I start a MC bitmap image from scratch and draw and paint, !media, color pickers etc work correctly.
Update: Tested with .bmp and the same issue.
from c64studio.
Something to test with.
- test.graphicscreen is drawn in C64studio and works correctly.
- test.png is a screen shot from VICE, cropped to 320x200
- test2.graphicscreen is import of test.png . The colors look fine, but running the code shows the colors incorrectly.
*= $5800
!media "test2.graphicscreen",color
*= $5c00
!media "test2.graphicscreen",screen
*= $6000
!media "test2.graphicscreen",bitmap
*= $0801
!basic
jmp start
*= $2800
start
lda #$00
loop1 lda $5800,x
sta $d800,x
lda $5900,x
sta $d900,x
lda $5a00,x
sta $da00,x
lda $5b00,x
sta $db00,x
inx
bne loop1
lda #$00
sta $d020
sta $d021
lda #$3b
sta $d011
lda #%01111000
sta $d018
lda #%11111110
sta $dd00
lda #%00011000
sta $d016
jmp *
from c64studio.
Thanks, I'm reading it, but this will take a bit to look into.
from c64studio.
The import works in mysterious ways once it mixes the palette. As mentioned the image may look good, but !media data is weird. Anyway, I was able to convert my image with the 'Directly replace colors'. So my second issue is "sorted". The first one I still would like to have. ;-)
from c64studio.
Related Issues (20)
- Debugging does not work with GTKVICE 3.6.1 HOT 6
- Kick Assembler support HOT 7
- Dark mode support HOT 11
- Broken layout in 7.2 HOT 21
- Debugging multifile C64 assembly HOT 10
- Import from HEX to character editor HOT 4
- Charscreen editor to highlight where char is used
- Use color palette in editors as Vice uses
- Right click to paint with background (clear pixels) HOT 2
- Cancel exits C64 Studio HOT 4
- Request: Show compiled memory as a pixel image HOT 1
- Charscreen reverse character behaviour HOT 7
- Charscreen reverse mode backspace clears in non-reverse. HOT 1
- Align value one off HOT 2
- Sprite Preview "Save as GIF" Produces Broken GIF HOT 2
- Huge settings.dat hangs editor while closing HOT 1
- Value table editor HOT 2
- Cannot type "\" in a BASIC #include directive HOT 2
- How to assembly 65816 in recent commits? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c64studio.