fix async draw and update pixels example
This commit is contained in:
parent
e060b81e0b
commit
d72548644e
@ -15,8 +15,8 @@ function Library (ronin) {
|
|||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|
||||||
this.draw = (path, rect) => {
|
this.draw = (path, rect, callback) => {
|
||||||
ronin.surface.draw(path, rect)
|
ronin.surface.draw(path, rect, callback)
|
||||||
return rect
|
return rect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
; Draw photo
|
; Draw photo
|
||||||
|
|
||||||
(draw "../../PREVIEW.jpg")
|
(draw "../../PREVIEW.jpg"
|
||||||
(echo (select (rect 0 0 10 10)))
|
(frame)
|
||||||
)
|
(lambda () (echo (select (rect 660 344 10 10))))
|
||||||
|
))
|
Loading…
x
Reference in New Issue
Block a user