diff --git a/docs/graphics.palettes.wren.md b/docs/graphics.palettes.wren.md index 07547ed..0bbe1d8 100644 --- a/docs/graphics.palettes.wren.md +++ b/docs/graphics.palettes.wren.md @@ -42,13 +42,18 @@ Contains all the palettes - Signature: `static gbcrt -> GBCrt` -### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L48) +### [static nokia](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L49) + + +- Signature: `static nokia-> Nokia` + +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L54) - Signature: `static all -> List` --- -## [Class DOME is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L67) +## [Class DOME is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L73) The standard DOME palette @@ -56,103 +61,103 @@ The standard DOME palette ## API -### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L72) +### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L78) - Signature: `static none -> Color.none` -### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L77) +### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L83) - Signature: `static black -> Color` -### [static darkblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L82) +### [static darkblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L88) - Signature: `static darkblue -> Color` -### [static purple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L87) +### [static purple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L93) - Signature: `static purple -> Color` -### [static darkpurple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L92) +### [static darkpurple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L98) - Signature: `static darkpurple -> Color` -### [static darkgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L97) +### [static darkgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L103) - Signature: `static darkgreen -> Color` -### [static brown](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L102) +### [static brown](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L108) - Signature: `static brown -> Color` -### [static darkgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L107) +### [static darkgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L113) - Signature: `static darkgrey -> Color` -### [static lightgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L113) +### [static lightgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L119) - Signature: `static lightgrey -> Color` -### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L119) +### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L125) - Signature: `static white -> Color` -### [static red](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L124) +### [static red](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L130) - Signature: `static red -> Color` -### [static orange](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L129) +### [static orange](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L135) - Signature: `static orange -> Color` -### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L134) +### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L140) - Signature: `static yellow -> Color` -### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L139) +### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L145) - Signature: `static green -> Color` -### [static blue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L144) +### [static blue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L150) - Signature: `static blue -> Color` -### [static indigo](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L149) +### [static indigo](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L155) - Signature: `static indigo -> Color` -### [static pink](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L154) +### [static pink](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L160) - Signature: `static pink -> Color` -### [static peach](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L159) +### [static peach](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L165) - Signature: `static peach -> Color` -### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L164) +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L170) - Signature: `static all -> List` --- -## [Class OneBitMonitor is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L178) +## [Class OneBitMonitor is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L184) Based on https://lospec.com/palette-list/1bit-monitor-glow @@ -160,28 +165,57 @@ Based on https://lospec.com/palette-list/1bit-monitor-glow ## API -### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L183) +### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L189) + + +- Signature: `static none -> Color.none` + +### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L194) + + +- Signature: `static black -> Color` + +### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L204) + + +- Signature: `static white -> Color` + +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L214) + + +- Signature: `static all -> List` + +--- +## [Class Nokia is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L226) + + +Based on https://itch.io/jam/nokiajam3 +- Since: 1.0.0 + +## API + +### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L231) - Signature: `static none -> Color.none` -### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L188) +### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L236) - Signature: `static black -> Color` -### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L198) +### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L246) - Signature: `static white -> Color` -### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L208) +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L256) - Signature: `static all -> List` --- -## [Class TIC is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L220) +## [Class TIC is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L268) Based on https://github.com/nesbox/TIC-80/wiki/palette @@ -189,98 +223,98 @@ Based on https://github.com/nesbox/TIC-80/wiki/palette ## API -### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L224) +### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L272) - Signature: `static none -> Color.none` -### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L229) +### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L277) - Signature: `static black -> Color` -### [static purple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L238) +### [static purple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L286) - Signature: `static purple -> Color` -### [static red](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L248) +### [static red](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L296) - Signature: `static red -> Color` -### [static orange](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L258) +### [static orange](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L306) - Signature: `static orange -> Color` -### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L268) +### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L316) - Signature: `static yellow -> Color` -### [static lightgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L278) +### [static lightgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L326) - Signature: `static lightgreen -> Color` -### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L288) +### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L336) - Signature: `static green -> Color` -### [static darkgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L298) +### [static darkgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L346) - Signature: `static darkgreen -> Color` -### [static darkblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L308) +### [static darkblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L356) - Signature: `static darkblue -> Color` -### [static blue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L318) +### [static blue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L366) - Signature: `static blue -> Color` -### [static lightblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L328) +### [static lightblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L376) - Signature: `static lightblue -> Color` -### [static cyan](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L338) +### [static cyan](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L386) - Signature: `static cyan -> Color` -### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L348) +### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L396) - Signature: `static white -> Color` -### [static lightgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L358) +### [static lightgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L406) - Signature: `static lightgrey -> Color` -### [static grey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L368) +### [static grey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L416) - Signature: `static grey -> Color` -### [static darkgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L378) +### [static darkgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L426) - Signature: `static darkgrey -> Color` -### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L388) +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L436) - Signature: `static all -> List` --- -## [Class Pico is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L417) +## [Class Pico is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L465) Based on https://pico-8.fandom.com/wiki/Palette @@ -288,98 +322,98 @@ Based on https://pico-8.fandom.com/wiki/Palette ## API -### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L421) +### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L469) - Signature: `static none -> Color.none` -### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L426) +### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L474) - Signature: `static black -> Color` -### [static darkblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L436) +### [static darkblue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L484) - Signature: `static darkblue -> Color` -### [static darkpurple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L446) +### [static darkpurple](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L494) - Signature: `static darkpurple -> Color` -### [static darkgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L456) +### [static darkgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L504) - Signature: `static darkgreen -> Color` -### [static brown](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L466) +### [static brown](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L514) - Signature: `static brown -> Color` -### [static darkgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L476) +### [static darkgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L524) - Signature: `static darkgrey -> Color` -### [static lightgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L486) +### [static lightgrey](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L534) - Signature: `static lightgrey -> Color` -### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L496) +### [static white](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L544) - Signature: `static white -> Color` -### [static red](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L506) +### [static red](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L554) - Signature: `static red -> Color` -### [static orange](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L516) +### [static orange](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L564) - Signature: `static orange -> Color` -### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L526) +### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L574) - Signature: `static yellow -> Color` -### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L536) +### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L584) - Signature: `static green -> Color` -### [static blue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L546) +### [static blue](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L594) - Signature: `static blue -> Color` -### [static lavender](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L556) +### [static lavender](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L604) - Signature: `static lavender -> Color` -### [static pink](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L566) +### [static pink](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L614) - Signature: `static pink -> Color` -### [static lightpeach](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L576) +### [static lightpeach](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L624) - Signature: `static lightpeach -> Color` -### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L588) +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L636) - Signature: `static all -> List` --- -## [Class GBCrt is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L617) +## [Class GBCrt is Palette](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L665) Based on https://lospec.com/palette-list/crtgb @@ -387,32 +421,32 @@ Based on https://lospec.com/palette-list/crtgb ## API -### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L621) +### [static none](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L669) - Signature: `static none -> Color.none` -### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L626) +### [static black](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L674) - Signature: `static black -> Color` -### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L636) +### [static green](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L684) - Signature: `static green -> Color` -### [static lightgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L646) +### [static lightgreen](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L694) - Signature: `static lightgreen -> Color` -### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L656) +### [static yellow](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L704) - Signature: `static yellow -> Color` -### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L666) +### [static all](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/palettes.wren#L714) - Signature: `static all -> List` diff --git a/docs/graphics.res.wren.md b/docs/graphics.res.wren.md index 9f2eb54..34f8dc8 100644 --- a/docs/graphics.res.wren.md +++ b/docs/graphics.res.wren.md @@ -57,12 +57,12 @@ https://arduboy.com/faq/ - Signature: `height:Num` --- -## [Class TIC80 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L81) +## [Class Nokia is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L81) -Based on the TIC-80 specs _(240 x 136)_ +Based on the Nokia 3310 specs _(88 x 48)_ -https://github.com/nesbox/TIC-80/wiki#specification +https://itch.io/jam/nokiajam3 - Since: `1.0.0` @@ -81,10 +81,52 @@ https://github.com/nesbox/TIC-80/wiki#specification ### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L101) +- Signature: `height:Num` + +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L109) + + +- Signature: `size:Resolution` + +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L119) + + +- Signature: `width:Num` + +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L124) + + +- Signature: `height:Num` + +--- +## [Class TIC80 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L134) + + +Based on the TIC-80 specs _(240 x 136)_ + +https://github.com/nesbox/TIC-80/wiki#specification + +- Since: `1.0.0` + +## API + +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L139) + + +- Signature: `size:Resolution` + +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L149) + + +- Signature: `width:Num` + +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L154) + + - Signature: `height:Num` --- -## [Class Pico8 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L113) +## [Class Pico8 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L166) Based on the Pico8 specs _(128 x 128)_ @@ -95,23 +137,23 @@ https://pico-8.fandom.com/wiki/Pico8 ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L118) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L171) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L128) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L181) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L133) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L186) - Signature: `height:Num` --- -## [Class NES is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L143) +## [Class NES is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L196) Based on the NES specs _(256 x 240)_ @@ -122,23 +164,23 @@ https://en.wikipedia.org/wiki/Nintendo_Entertainment_System ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L148) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L201) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L158) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L211) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L163) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L216) - Signature: `height:Num` --- -## [Class SNES is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L175) +## [Class SNES is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L228) Based on the SNES specs _(256 x 224)_ or _(512 x 448)_ @@ -149,29 +191,29 @@ https://en.wikipedia.org/wiki/Super_Nintendo_Entertainment_System ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L180) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L233) - Signature: `size:Resolution` -### [static interlaced](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L191) +### [static interlaced](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L244) 512 x 448 - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L201) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L254) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L206) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L259) - Signature: `height:Num` --- -## [Class Gameboy is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L218) +## [Class Gameboy is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L271) Based on the Gameboy specs _(160 x 144)_ @@ -182,23 +224,23 @@ https://en.wikipedia.org/wiki/Game_Boy ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L223) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L276) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L233) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L286) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L238) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L291) - Signature: `height:Num` --- -## [Class GameboyAdvance is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L248) +## [Class GameboyAdvance is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L301) Based on the Gameboy Advance specs _(240 x 160)_ @@ -209,23 +251,23 @@ https://en.wikipedia.org/wiki/Game_Boy_Advance ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L253) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L306) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L263) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L316) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L268) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L321) - Signature: `height:Num` --- -## [Class PSP is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L278) +## [Class PSP is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L331) Based on the Playstation Portable specs _(480 x 272)_ @@ -236,23 +278,23 @@ https://en.wikipedia.org/wiki/PlayStation_Portable ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L283) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L336) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L293) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L346) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L298) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L351) - Signature: `height:Num` --- -## [Class C64 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L309) +## [Class C64 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L362) Based on the Commondore 64 specs _(320 x 200)_ or _(160 x 200)_ @@ -263,29 +305,29 @@ https://en.wikipedia.org/wiki/Commodore_64 ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L314) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L367) - Signature: `size:Resolution` -### [static multicolor](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L325) +### [static multicolor](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L378) Multicolor mode _(160 x 200)_ - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L335) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L388) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L340) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L393) - Signature: `height:Num` --- -## [Class Atari2600 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L350) +## [Class Atari2600 is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L403) Based on the Atari 2600 specs _(160 x 192)_ @@ -296,23 +338,23 @@ https://en.wikipedia.org/wiki/Atari_2600_hardware ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L355) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L408) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L365) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L418) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L370) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L423) - Signature: `height:Num` --- -## [Class AppleII is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L380) +## [Class AppleII is Resolution](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L433) Based on the Apple II specs _(280 x 192)_ @@ -323,17 +365,17 @@ https://en.wikipedia.org/wiki/Apple_II_graphics ## API -### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L385) +### [static size](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L438) - Signature: `size:Resolution` -### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L395) +### [static width](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L448) - Signature: `width:Num` -### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L400) +### [static height](https://github.com/ninjascl/domepunk/blob/main/domepunk/graphics/res.wren#L453) - Signature: `height:Num` diff --git a/domepunk/graphics/palettes.wren b/domepunk/graphics/palettes.wren index d3b261c..586e405 100644 --- a/domepunk/graphics/palettes.wren +++ b/domepunk/graphics/palettes.wren @@ -42,12 +42,18 @@ class Palettes { */ static gbcrt {GBCrt} + + /** + - Signature: `static nokia-> Nokia` + */ + static nokia {Nokia} + /** - Signature: `static all -> List` */ static all { if (!__all) { - __all = [dome, onebitmonitor, tic, pico, gbcrt] + __all = [dome, onebitmonitor, tic, pico, gbcrt, nokia] } return __all } @@ -213,6 +219,48 @@ class OneBitMonitor is Palette { } } +/** +Based on https://itch.io/jam/nokiajam3 +- Since: 1.0.0 +*/ +class Nokia is Palette { + + /** + - Signature: `static none -> Color.none` + */ + static none { Color.none } + + /** + - Signature: `static black -> Color` + */ + static black { + if (!__black) { + __black = Color.hex("#43523d") + } + return __black + } + + /** + - Signature: `static white -> Color` + */ + static white { + if (!__white) { + __white = Color.hex("#c7f0d8") + } + return __white + } + + /** + - Signature: `static all -> List` + */ + static all { + if (!__all) { + __all = [black, white] + } + return __all + } +} + /** Based on https://github.com/nesbox/TIC-80/wiki/palette - Since: 1.0.0 diff --git a/domepunk/graphics/res.wren b/domepunk/graphics/res.wren index 63c2d63..2bb5bdb 100644 --- a/domepunk/graphics/res.wren +++ b/domepunk/graphics/res.wren @@ -71,6 +71,59 @@ class Arduboy is Resolution { static height {size.height} } +/** +Based on the Nokia 3310 specs _(88 x 48)_ + +https://itch.io/jam/nokiajam3 + +- Since: `1.0.0` +*/ +class Nokia is Resolution { + + /** + - Signature: `size:Resolution` + */ + static size { + if (!__size) { + __size = Resolution.new(88, 48) + } + return __size + } + + /** + - Signature: `width:Num` + */ + static width {size.width} + + /** + - Signature: `height:Num` + */ + static height {size.height} +} + +class NokiaLandscape is Resolution { + + /** + - Signature: `size:Resolution` + */ + static size { + if (!__size) { + __size = Resolution.new(48, 88) + } + return __size + } + + /** + - Signature: `width:Num` + */ + static width {size.width} + + /** + - Signature: `height:Num` + */ + static height {size.height} +} + /** Based on the TIC-80 specs _(240 x 136)_