tweak monogfx stipple plot

This commit is contained in:
Irmen de Jong 2024-03-03 21:47:42 +01:00
parent c48012c385
commit 449461e412
3 changed files with 15 additions and 33 deletions

View File

@ -554,12 +554,14 @@ _done
if draw {
; solid color or perhaps stipple
%asm {{
lda p8v_dont_stipple_flag
bne p8l_nostipple
lda p8v_xx
eor p8v_yy
ora p8v_dont_stipple_flag
and #1
}}
if_nz {
nostipple:
prepare()
%asm {{
tsb cx16.VERA_DATA0

View File

@ -13,8 +13,6 @@ textelite
rockrunner is quite a bit larger
optimize optimizedPlusMinExpr for when comparing to simple things like number and identifier.
replace Takes by Http4k in httpCompilerService project. https://github.com/http4k/examples/blob/master/hello-world/README.md
...

View File

@ -1,37 +1,19 @@
%import textio
%option no_sysinit
%zeropage basicsafe
%import monogfx
main {
sub rrrr() -> ubyte {
cx16.r0L++
return cx16.r0L
}
sub start() {
cx16.r0L = rrrr() >= 128
monogfx.lores()
monogfx.stipple(true)
; ubyte[] flakes = [1,2,3]
;
; ubyte @shared idx = 2
;
; if flakes[idx]==239 {
; txt.print("yes")
; } else {
; txt.print("nope")
; }
;
; ubyte @shared xx = 16
; ubyte @shared yy = 20
;
; txt.print_ub(xx>79 or yy > 49)
uword x1, x2
uword y1, y2
; if xx>79 or yy > 49 {
; if xx>79 or yy > 49 {
; txt.print("no\n")
; }
; else {
; txt.print("yes\n")
; }
repeat {
x1 = math.rnd()
y1 = math.rnd() % 240
x2 = math.rnd()
y2 = math.rnd() % 240
monogfx.line(x1, y1, x2, y2, true)
}
}
}