Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » I created a pen rendered image format
- iwotastic
- Scratcher
100+ posts
I created a pen rendered image format
I have been working on a project that can display images that have been encoded from this site in the SPIFFY (Scratch Pen Image Format For You) Format. I thought that I would post this in the Advanced Topics so I could try to explain how the format works and get feedback on it.
How it works
A SPIFFY code is a base 36 (I'll explain why later) encoded string that contains pairs of base six numbers formatted in the following way.
Any tips, feedback, suggestions?
How it works
A SPIFFY code is a base 36 (I'll explain why later) encoded string that contains pairs of base six numbers formatted in the following way.
- 2 base six pairs denoting image width and height (this is why images are capped to 36x36).
- 4 digit base six number that denote the number of colors in the image.
- Sets of 10 digit base six numbers that denote "Set pen color to " values
- List of 1-4 (based on number of colors) digit base six number that denotes the index in the color list to use for the current pixel.
Any tips, feedback, suggestions?
- CatIsFluffy
- Scratcher
100+ posts
I created a pen rendered image format
Can you remove the letters c, s, and 8 from the encoding? If you don't, the strings could contain swears or forbidden 1800s. (F has a c, S has an s, A has two ss, and C has a c.)
- iwotastic
- Scratcher
100+ posts
I created a pen rendered image format
Unfortunately, this is easier said than done. If you want this, you can try to remix the Scratch project and fork the Codepen to make the change yourself. Can you remove the letters c, s, and 8 from the encoding? If you don't, the strings could contain swears or forbidden 1800s. (F has a c, S has an s, A has two ss, and C has a c.)
- CatIsFluffy
- Scratcher
100+ posts
I created a pen rendered image format
So you can't make a program to convert c into !, s into #, and 8 into %?
- Jonathan50
- Scratcher
1000+ posts
I created a pen rendered image format
Why don't you like 1,800?
You'd have to do OCR on the image, but the strings are too long to put in the comments anyway. So you can't make a program to convert c into !, s into #, and 8 into %?
Not yet a Knight of the Mu Calculus.
- CatIsFluffy
- Scratcher
100+ posts
I created a pen rendered image format
Scratch's filters dislike 1800 (last time I checked). Also, OCR on the image? I was talking about changing the alphabet of SPIFFY.
- Jonathan50
- Scratcher
1000+ posts
I created a pen rendered image format
Oh! xD That makes more sense. Also, OCR on the image? I was talking about changing the alphabet of SPIFFY.
Last edited by Jonathan50 (July 21, 2017 23:50:11)
Not yet a Knight of the Mu Calculus.
- Discussion Forums
- » Advanced Topics
- » I created a pen rendered image format