Just for curiosity, Could a LC Builder function works faster than Javascript?
I don't know how to use LC Builder so I could not test myself...
Al
Fast method for counting RGB values of an image
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Fast method for counting RGB values of an image
With accessing single bytes of imageData it is even slower than LC Script...
shiftLock happens
Re: Fast method for counting RGB values of an image
Oh... Then if we put the imagedata in a variable,
and use LCB to make the conversion of binary data
this is still slower than LCS.
When is LCB faster than LCS?
Al
and use LCB to make the conversion of binary data
this is still slower than LCS.
When is LCB faster than LCS?
Al
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Fast method for counting RGB values of an image
Related to images LCB is at least as fast as LCS when drawing rectangular blocks of images and is faster with deliberate affine transforms of images.
Moreover LCB has features that you don't have in LCS, e.g. (sub-pixel) drawing of affine transformed pathes, especially SVG Pathes.
LCB is still far apart from but on the way to deliver the excellent HTML5 canvas operations.
Moreover LCB has features that you don't have in LCS, e.g. (sub-pixel) drawing of affine transformed pathes, especially SVG Pathes.
LCB is still far apart from but on the way to deliver the excellent HTML5 canvas operations.
shiftLock happens