diff options
| author | 2019-04-24 11:03:58 -0400 | |
|---|---|---|
| committer | 2019-04-24 11:03:58 -0400 | |
| commit | 4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09 (patch) | |
| tree | fe63c3525b2e14f12b4492f87d3e875c4dcec0e4 /frontends/calculator/CEdev/examples/gfx_light_dark | |
| parent | 6152e965868f3e010c79d91ce3da0036758fda4d (diff) | |
| download | cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.gz cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.bz2 cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.zip | |
add pause to curses, remove unfinished calculator frontend
Diffstat (limited to 'frontends/calculator/CEdev/examples/gfx_light_dark')
| -rw-r--r-- | frontends/calculator/CEdev/examples/gfx_light_dark/autotester.json | 63 | ||||
| -rw-r--r-- | frontends/calculator/CEdev/examples/gfx_light_dark/makefile | 15 | ||||
| -rw-r--r-- | frontends/calculator/CEdev/examples/gfx_light_dark/readme.md | 10 | ||||
| -rw-r--r-- | frontends/calculator/CEdev/examples/gfx_light_dark/screenshot.gif | bin | 67785 -> 0 bytes | |||
| -rw-r--r-- | frontends/calculator/CEdev/examples/gfx_light_dark/src/main.c | 59 |
5 files changed, 0 insertions, 147 deletions
diff --git a/frontends/calculator/CEdev/examples/gfx_light_dark/autotester.json b/frontends/calculator/CEdev/examples/gfx_light_dark/autotester.json deleted file mode 100644 index f1a5915..0000000 --- a/frontends/calculator/CEdev/examples/gfx_light_dark/autotester.json +++ /dev/null @@ -1,63 +0,0 @@ -{
- "rom": "84pce_515.rom",
- "transfer_files": [
- "bin/DEMO.8xp"
- ],
- "target": {
- "name": "DEMO",
- "isASM": true
- },
- "sequence": [
- "action|launch", "delay|300", "hash|rectangles", "hash|palette_0",
- "key|enter", "delay|1000", "hash|palette_25",
- "key|enter", "delay|1000", "hash|palette_50",
- "key|enter", "delay|1000", "hash|palette_75",
- "key|enter", "delay|1000", "hash|palette_100",
- "key|enter", "delay|300", "hash|after_exit"
- ],
- "hashes": {
- "rectangles": {
- "description": "Test rectangles",
- "start": "vram_start",
- "size": "vram_8_size",
- "expected_CRCs": [ "328D511E" ]
- },
- "palette_0": {
- "description": "Test lighten/darken fade, 0% progress",
- "start": "lcdPalette",
- "size": "8",
- "expected_CRCs": [ "41C3BFF8" ]
- },
- "palette_25": {
- "description": "Test lighten/darken fade, 25% progress",
- "start": "lcdPalette",
- "size": "8",
- "expected_CRCs": [ "5F64F889" ]
- },
- "palette_50": {
- "description": "Test lighten/darken fade, 50% progress",
- "start": "lcdPalette",
- "size": "8",
- "expected_CRCs": [ "C48CEF7C" ]
- },
- "palette_75": {
- "description": "Test lighten/darken fade, 75% progress",
- "start": "lcdPalette",
- "size": "8",
- "expected_CRCs": [ "81FEDD4E" ]
- },
- "palette_100": {
- "description": "Test lighten/darken fade, 100% progress",
- "start": "lcdPalette",
- "size": "8",
- "expected_CRCs": [ "B451E096" ]
- },
- "after_exit": {
- "description": "Back to the home screen (exit check)",
- "start": "vram_start",
- "size": "vram_16_size",
- "expected_CRCs": [ "FFAF89BA", "101734A5" ]
- }
- }
-}
-
diff --git a/frontends/calculator/CEdev/examples/gfx_light_dark/makefile b/frontends/calculator/CEdev/examples/gfx_light_dark/makefile deleted file mode 100644 index d3deba8..0000000 --- a/frontends/calculator/CEdev/examples/gfx_light_dark/makefile +++ /dev/null @@ -1,15 +0,0 @@ -# ----------------------------
-# Set NAME to the program name
-# Set ICON to the png icon file name
-# Set DESCRIPTION to display within a compatible shell
-# Set COMPRESSED to "YES" to create a compressed program
-# ----------------------------
-
-NAME ?= DEMO
-COMPRESSED ?= NO
-ICON ?= iconc.png
-DESCRIPTION ?= "C SDK Demo"
-
-# ----------------------------
-
-include $(CEDEV)/include/.makefile
diff --git a/frontends/calculator/CEdev/examples/gfx_light_dark/readme.md b/frontends/calculator/CEdev/examples/gfx_light_dark/readme.md deleted file mode 100644 index 238c3e3..0000000 --- a/frontends/calculator/CEdev/examples/gfx_light_dark/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -### GraphX Lighten and Darken Demo
-
-Demonstrates rectangle drawing and using gfx_Darken and gfx_Lighten to modify colors in the palette to implement fade effects.
-
-
-
----
-
-This demo is a part of the C SDK Toolchain for use on the CE.
-
diff --git a/frontends/calculator/CEdev/examples/gfx_light_dark/screenshot.gif b/frontends/calculator/CEdev/examples/gfx_light_dark/screenshot.gif Binary files differdeleted file mode 100644 index 8470736..0000000 --- a/frontends/calculator/CEdev/examples/gfx_light_dark/screenshot.gif +++ /dev/null diff --git a/frontends/calculator/CEdev/examples/gfx_light_dark/src/main.c b/frontends/calculator/CEdev/examples/gfx_light_dark/src/main.c deleted file mode 100644 index 4f2e4d1..0000000 --- a/frontends/calculator/CEdev/examples/gfx_light_dark/src/main.c +++ /dev/null @@ -1,59 +0,0 @@ -#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <tice.h>
-
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <graphx.h>
-
-#define color gfx_RGBTo1555(34, 55, 89)
-
-void main(void) {
- uint8_t i = 0;
-
- /* Initialize the 8bpp graphics */
- gfx_Begin();
-
- /* For i in 0..255 */
- do {
-
- /* Fade out to black */
- gfx_palette[0] = gfx_Darken(color, i);
- /* Fade in from black */
- gfx_palette[1] = gfx_Darken(color, ~i);
- /* Fade in from white */
- gfx_palette[3] = gfx_Lighten(color, ~i);
- /* Fade out to white */
- gfx_palette[2] = gfx_Lighten(color, i);
-
- /* Fade out to black */
- gfx_SetColor(0);
- gfx_FillRectangle_NoClip(0, 0, 160, 120);
- /* Fade in from black */
- gfx_SetColor(1);
- gfx_FillRectangle_NoClip(160, 0, 160, 120);
- /* Fade in from white */
- gfx_SetColor(2);
- gfx_FillRectangle_NoClip(0, 120, 160, 120);
- /* Fade out to white */
- gfx_SetColor(3);
- gfx_FillRectangle_NoClip(160, 120, 160, 120);
-
- /* Wait for a keypress at the start of each quarter of the fade */
- if (!(i & 0x3f)) {
- while (!os_GetCSC());
- }
-
- /* Loop until i is 0 again because of 8 bit range */
- } while (++i);
-
- /* Wait for a keypress */
- while (!os_GetCSC());
-
- /* Usual cleanup */
- gfx_End();
-}
|