mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
tweak monogfx stipple plot
This commit is contained in:
parent
c48012c385
commit
449461e412
@ -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
|
||||
|
@ -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
|
||||
|
||||
...
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user