Megatest

Diff
Login

Differences From Artifact [382e81ebe7]:

To Artifact [885c0f1d84]:


240
241
242
243
244
245
246
247





248
249
250
251
252
253
254
240
241
242
243
244
245
246

247
248
249
250
251
252
253
254
255
256
257
258







-
+
+
+
+
+







    (list llx lly ulx uly)))

;;======================================================================
;; color
;;======================================================================

(define (vg:rgb->number r g b #!key (a 0))
   (u32vector-ref (blob->u32vector (u8vector->blob (list->u8vector (list a r g b)))) 0))
  (bitwise-ior
    (arithmetic-shift a 24)
    (arithmetic-shift r 16)
    (arithmetic-shift g 8)
    b))

(define (vg:iup-color->number iup-color)
  (apply vg:rgb->number (map string->number (string-split iup-color))))

;;======================================================================
;; Unravel and draw the objects
;;======================================================================