nostalgic-css / NES.css

NES-style CSS Framework | ファミコン風CSSフレームワーク
https://nostalgic-css.github.io/NES.css/
MIT License
20.61k stars 1.65k forks source link

Adopt technical restrictions from the NES (less colors!) #260

Closed lorenzleutgeb closed 5 years ago

lorenzleutgeb commented 5 years ago

I think that lib uses too many colors. Also it would be nice to enforce other constraints that were required by the NES:

The system has an available color palette of 48 colors and 6 grays. Up to 25 simultaneous colors may be used without writing new values mid-frame: a background color, four sets of three tile colors and four sets of three sprite colors. The NES palette is based on NTSC rather than RGB values. A total of 64 sprites may be displayed onscreen at a given time without reloading sprites mid-screen.

https://en.wikipedia.org/wiki/Nintendo_Entertainment_System#Technical_specifications

BcRikko commented 5 years ago

ref #27 https://github.com/nostalgic-css/NES.css/blob/develop/scss/base/color-palette.scss

guastallaigor commented 5 years ago

To me, leave the colors as it is. I think this comment in issue #5 by @BcRikko applies here:

image