Re: LC-Magick Collection

2017-01-31 Thread hh via use-livecode
Tracing all opaque parts of a picture with transparency, not only the outline, is one of the tools that BerndN uses in button "TracedAntialias" for the bilinear distortion, the tracing method used is "radial sweep". We should ask him to make an own 'little stack' for "Antialiased Tracing" where

Re: Yertle the Turtle

2017-01-31 Thread hh via use-livecode
> Richmond wrote: > The problem is that (as far as I am aware) LiveCode cannot > move objects for fractions of pixels. Even if it could, this would be not enough, because sqrt(2) is an irrational number ;-) ___ use-livecode mailing list

Re: Yertle the Turtle

2017-01-31 Thread hh via use-livecode
> Colin H. wrote: > I’m sure any system would not attempt to parse an infinite number of decimal > places. The turtle would probably be placed at 1.41421356237 pixels. If you > want to try more accurately than that, here’s the first million decimal > places: >

Re: Size of Image in RAM

2017-02-07 Thread hh via use-livecode
Scott is right: JPEG has exactly one _color_ mode: 16M = 2^24 (seen apart of 256 gray-color mode). What you interpret as "8bit-color-mode" relates to the _compression_ mode which also explains the relation filesize vs (uncompressed) size in memory. ___

Re: Mobile library for barcodes?

2017-01-31 Thread hh via use-livecode
> Devin A. wrote: > I am actually interested in *bar code* reading rather than QR codes. https://github.com/trozware/rev_stacks/ ? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

LC-Magick Collection

2017-01-31 Thread hh via use-livecode
Added today #6: Bilinear Perspective Image Distortion Distortion part by 'hh', Antialiasing part by 'BNig'. LC-Magick #1 - Blur and Pixelate (Scott R.) http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ LC-Magick #2 - Pointillize (Hermann H.)

Re: HTML5 and different editions

2017-01-22 Thread hh via use-livecode
Keith M. wrote: > HTML5 production is part of the LiveCode Community edition, which is > fantastic. It's in the Business edition too, of course. The Indy > edition, however, doesn't allow HTML5 production at all. In which version do you see this? I made close to all of my > 50 examples

Re: HTML5 and different editions

2017-01-22 Thread hh via use-livecode
I don't understand. Keith writes about the ability to make standalones, not about the license. I thought *every* edition of LiveCode can create HTML5 standalones? (I can't test because I have a HTML5 license). If not, that is possibly because Indy can set passwords to all standalones, what has to

Re: Script editor chops "end handler" to "nd handler"

2017-01-27 Thread hh via use-livecode
I cannot confirm this, it's even more: "en" is chopped. [Also, sometimes: When hitting immediately after that the backspace key a zero appears.] This is only with code that is not "beautified" (all lines begin at left). I tried my own, not your demo. [I had also _sometimes_ similar chopping

Re: Browser Widget/HTML5/LC Integration

2017-01-28 Thread hh via use-livecode
BR wrote: "Even my attempts with AnimationEngine which is, I believe as good as it's going to ever get with LC's engine, have a clunky, jerky feel." I tried to generate such "bad" graphics in LC without any success. So: Could we see (at least one of) such attempts? Don't forget the source code.

Re: Browser Widget/HTML5/LC Integration

2017-01-28 Thread hh via use-livecode
> BR wrote: > Sure.. try this: > go stack url "http://wiki.hindu.org/uploads/SivasHawaiiRevels_v001.livecode; > it's so "bad" as it is "just below par" enough to cause others to blink at it. It's not the LC graphics it's the "jagged" and "uncomplete" scripting. LC can do much more. Some basic

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
@Roger I adjusted (uncompletely) the name to the OP's handler name. Yes, you are right, the handler only opens the enclosing folder (or any path item of such a folder path). The purpose of my post was to second the "launch document" solution for folders and moreover to add the linux variant for

Re: Goofy Drawing question

2017-02-25 Thread hh via use-livecode
Assuming you wish to draw, not to paint: local gg="goofy", fc="255,0,0", ls=3 on mouseUp lock screen if there is no grc gg then create grc gg set style of grc gg to "polygon" -- or "line" set points of grc gg to (250,250),(375, 375) set lineSize of grc gg to ls set forecolor of grc

Posting delay

2017-02-25 Thread hh via use-livecode
I have currently a "posting delay" (time between sending the mail and the becoming visible in the list) of 40 up to 60 minutes. Is this the consequence of a changed incoming spam filter? ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
The following works here on Mac/Win/Linux with LC 6/7/8/9. All my newer stacks have a menu (small square at top left) to do that for each path item of the current stack path. ## Opens the folder that contains the file pFolderFile command openWorkingFolder pFolderFile set itemdel to "/"

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
> Richard G. wrote: > There are three major desktop OSes. :) Yes. And I'm _the only one_ in this thread who posted a handler that serves all these three ... http://lists.runrev.com/pipermail/use-livecode/2017-February/234858.html ___ use-livecode

Re: Windows and OSX 64-bit builds?

2017-02-10 Thread hh via use-livecode
Please post this "Split it!"- answer, as it is, in LC's blog. This is good even for real beginners. Large files or large data shouldn't be a reason for _incomplete_ 64Bit implementations that would make once again LC Script slower. > Mark Waddingham wrote: > > > > Tom Glod wrote: > > I will...

Re: Windows and OSX 64-bit builds?

2017-02-11 Thread hh via use-livecode
This is a well known visual phenomena: When I'm tired I also switch sometimes 'in between reading' the temporarily memorized decimal point from the beginning to the end of a three-digit-block (did it recently in the forum). It mostly works for me (if not 'computing') to force myself to obey the

Re: Windows and OSX 64-bit builds?

2017-02-13 Thread hh via use-livecode
> Bob S. wrote: > I failed 6th grade math and then went on to ace algebra and geometry. > Everyone can thank their lucky stars I didn't go in for Rocket Science! Documented in a letter: "... Do not worry about your difficulties in Mathematics. I can assure you mine are still greater. Best

Formatting scripts in a field

2017-02-15 Thread hh via use-livecode
Some time ago there was a thread about formatting 'directly' the text of a field or the selection of a field, without using manually the script editor: http://runtime-revolution.278305.n4.nabble.com/Script-Indenting-tp4699437.html I couldn't find a follow-up, so just in case this is not

Re: Dragging widgets

2017-02-27 Thread hh via use-livecode
This is not a bug because a widget is not an ordinary control: Nearly all user interaction has to be allowed and scripted. I implemented a kind of "grab" in some of my LC8-widget examples. You can for example also Not focus on a widget from LC Script (that's why the browser widget is 'robust'

Re: Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread hh via use-livecode
Roger E. wrote: > Sounds very cool! Where is the download link? Use "Sample Stacks" in the LC toolbar (Sort descending by date) or (slower) http://livecodeshare.runrev.com/ (at top if sorted by 'Newest') ___ use-livecode mailing list

Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread hh via use-livecode
Hi all. There is a new sample stack by Jonathan Lynch called "Browser Widget Image Manipulator". This name could lead to underestimate a bit this stack. That's why I would like to point to it. This is a real clever solution, short and practicable. It uses the image manipulation possibilities of

Nabble fools one of us

2017-01-13 Thread hh via use-livecode
Just in case somebody of us is wondering why he/she suddenly authored *all* posts of this list since Jan 8 here: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html I can't see the logic which author is elected as the "one-for-all", but it's certainly without asking that

Re: LC-Magick Collection

2017-01-10 Thread hh via use-livecode
Update to LC-Magick #5: Circular (Polar) Image Distortion http://forums.livecode.com/viewtopic.php?p=14#p14 Bernd solved the antialiasing-border-problem with a brilliant technique (using a fillGradient). Needs some more time but it's worth. Thanks BerndN! > Added today #5: Circular

Re: Setting the Cursor to an image

2017-01-12 Thread hh via use-livecode
> William P. wrote: > I use: > on mouseUp > set the cursor to # —the ID of the image > lock cursor > end mouseUp You could try to _first_ lock the cursor then set it. (This works for here). ___ use-livecode mailing list

LC-Magick Collection

2017-01-08 Thread hh via use-livecode
Added today #5: Circular (Polar) Image Distortion. The distortion output is, not only in LC, somehow "jagged" at the border. I tried to "soften" border using graphic effects. Bernd (bn) already showed me a nearly perfect method for #4 (will be updated soon), sadly this can't handle

Re: Suggestions regarding a webgl problem

2017-03-21 Thread hh via use-livecode
Did you already try https://browserleaks.com/webgl ? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Colour Manipulation

2017-03-26 Thread hh via use-livecode
Now this is also available, very fast, with the same speed, for LC 6/7/8/9 on Mac using Canvas2d in a revBrowser instance (on Win revBrowser doesn't support Canvas2d) in LC-ImageToolBox-67: Basics. Get it via "Sample Stacks" of the LC-Toolbar or from

Re: Transparent Images in LC

2017-03-30 Thread hh via use-livecode
Yes, I also have seen this sometimes when special kinds of alphachannel (flattened/premultiplied/postmultiplied) were used in the PNG to import. Nevertheless the following 'standard' import script works for me nearly always in LC 6/7/8/9: on mouseUp set the paintcompression to RLE if there

Re: Line numbers for soft-wrapped styled text?

2017-03-29 Thread hh via use-livecode
> Jim L. wrote: > Just set the liststyle of the field that contains your editable text to > ‘decimal’. Then the lines will be automatically numbered and outdented. > Yet conveniently, the ’text’ and the ‘styledtext’ runs will not ‘contain' > the numbering since it is a styling. Now I finally

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread hh via use-livecode
I see, you are optimizing this. Will become perfect. The current search is part of a script that has to work also for non-wrapped text (with possibly horizontal scrollbar) and is a first step for calculating the visible "chars" (incl. whitespace). In sum: you are right, the search for the lines

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread hh via use-livecode
Hi Alex, below you will find a tested binary search for the visible lines which uses item 4 of the formattedRect for the topLine and item 2 of the formattedRect for the bottomLine. TMHO your method is so fast for visible lines of a field on usual screensizes only that you could do that for each

Re: Line numbers for soft-wrapped styled text?

2017-03-29 Thread hh via use-livecode
Alex, before you waste valuable time: The formattedRect can NOT be used in LC 7/8/9, because of the (2^15 div 2)-limit for coordinates is active for that. So the algorithm works in LC 6.7.11, but the results are sadly 'extremely' wrong in LC 7/8/9: Crossing the 'limit' with a vertical coordinate

Re: Overlaying on video

2017-03-27 Thread hh via use-livecode
> Roger E. wrote > Will there be a similar capability to allow objects (buttons and fields) > to overlay a browser widget, which might also be displaying a video? > I believe there is a need to make this possible for any situation. As I'm currentl refershing my 'web-knowledge' I made a demo. An

Re: Line numbers for soft-wrapped styled text?

2017-03-27 Thread hh via use-livecode
The solution of Alex T. was the first example I saw of a useful usage of the styledText array. TMHO this is the way to go for the future of more and more complicated styled text. As was said elsewhere, there could be a considerable speed up if first the visible range of lines, say numbers L1 to

Re: Colour Manipulation

2017-03-25 Thread hh via use-livecode
Hi all. Today I implemented this as part of LCImageToolBox89: Basics. Get it _from LC 8/9_ via "Sample Stacks" of the LC-Toolbar or http://livecodeshare.runrev.com/stack/826/LC-ImageToolBox89%3A-Basics Uses Canvas2D (no webGL because of issues with some graphic cards) in a hidden browser

Re: Widget usage examples

2017-03-25 Thread hh via use-livecode
Widget usage example #2: LC-ImageToolBox89_Basics http://forums.livecode.com/viewtopic.php?p=152723#p152723 You will be astonished how close the core of the javascripts is to the handling of imagedata in LCScript. There are a lot among you who will add and change effects without knowing

Re: Colour Manipulation

2017-03-19 Thread hh via use-livecode
> Jonathan L. wrote: > It would be amazing if the LC folks created an ImageMagick wrapper so that > we could use it as an external or widget! There is a Java interface (JMagick, see https://www.imagemagick.org/script/api.php) and the brand-new LiveCode FFI for Java. > If you can find a

Widget usage examples

2017-03-19 Thread hh via use-livecode
Today I started a new collection, hope some of you come in with "LC-specials". This demo shall show that you need nothing more than a browser widget and a set of image files located locally (e.g. in tmp-folder from stack resources) or from a server in order to have a HQ Ken-Burns-effect show --

Re: Widget usage examples

2017-03-20 Thread hh via use-livecode
> BR wrote > Now, if only we could layer objects on top. I'm seeing more and more apps now > that are using this kind of effect as the background, they also use looping > video - not animated gif, but actual video: short small looping clips that > run behind/ underneath a scrolling group of

Re: Widget usage examples

2017-03-20 Thread hh via use-livecode
Hi Jonathan, the problem is the slowdown/stuttering because base64 encoding increases data sizes by round 30%. To avoid a huge html file I had to use an extra callback for that. The other method I described is simpler and faster anyway and can easily be LC-scripted. As this is a widget usage

Re: Widget usage examples

2017-03-20 Thread hh via use-livecode
Correction. My widget usage example (Ken-Burns-Effekt) http://forums.livecode.com/viewtopic.php?p=152547#p152547 misses one feature I have announced: The images list is currently only working if you use image files from a server (may be also a local server). My variant for local files was, not

Re: Negative Numbers and NumberFormat

2017-04-04 Thread hh via use-livecode
>>> Bob S. wrote: >>> You should rather say the number format determines the num of DIGITS. >> hh wrote: >> That's what you wish to have (good idea). But it's not like that, its >> the length of the number as string. > Bob S. wrote > Really? Then why does : > set the numberformat to 0.0; put

Re: Negative Numbers and NumberFormat

2017-04-03 Thread hh via use-livecode
> Bob S. worte: > I have a function for calculating the difference in time Then you mean -(01:00:00) and not (-01):(00):(00), quite different. AFAIK most languages do such time evaluations as follows 1) compute the time in seconds, 2) convert its absolute value to time format, and 3) if

Re: [ANN] Release 8.1.4 RC-1

2017-04-04 Thread hh via use-livecode
> Panos M. wrote: > Dear list members, > We are pleased to announce the release of LiveCode 8.1.4 RC-1. Bugs fixed (among others): Lock cursor works again ... Layering is correct again ... The formattedRect works now also for 16 bit coords ... Thank you very much LC-team, especially for that!

Re: New Features?

2017-04-03 Thread hh via use-livecode
Interesting thread about scalefactor (lower half is your issue): http://runtime-revolution.278305.n4.nabble.com/scaleFactor-strangeness-tc4697399.html#none >Dan F. wrote: >Anyone know where to write LC for a feature request? >In case your curious… Don’t know if it’s possible or not, but I want

Release 9.0.0-rc1

2017-03-31 Thread hh via use-livecode
I can't sleep. The new LC 9.0.0-rc1 features make me crazy. Close to infinity. Converting all my stacks since two hours. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Line numbers for soft-wrapped styled text?

2017-04-02 Thread hh via use-livecode
Alex, a brilliant technique. It is certainly usable for other "searching" tasks. And it simply needs for this use case a faster measurement-method as input. We could try the selectedLoc: The script below gets for me the exakt topLefts of the visible ones of 2 "worse case"-lines in < 1

Re: AW: vertical text?

2017-04-12 Thread hh via use-livecode
> Jonathan L. wrote: > This is also easy to do in a browser widget, if you don't mind > the "always on top" aspect of browser widgets. Right, but only to a certain degree. LC Builder has _a lot_ of possibilities different from using the javascript of a browser widget. The very basic widget

AW: vertical text?

2017-04-12 Thread hh via use-livecode
Hi Tiemo, LC Script gives you only the possibility to have a rotated _image_ of "real" horizontal text. In LC Builder you have the possibility for rotating "real" horizontal text itself (use your font and size), not only a snapshot. Here is an easy example how to do that

Re: Negative Numbers and NumberFormat

2017-04-06 Thread hh via use-livecode
You forgot to give examples for Bob's original problem? The negative numbers ... ;-) > Paul D. wrote: >> put format("$%0.2f",tMoney) into msg >> >> for tMoney = 5.55, you get $5.55 >> for tMoney = 5.3, you get $5.33 >> >> want a space between the $, then use >> put format("$ %0.2f",tMoney)

Re: Standalone Magnify Problem

2017-04-06 Thread hh via use-livecode
> Peter R. wrote: > I have it working fine when I'm in the development environment > but it's not working reliably in a standalone app. a) Did you already check to have the same paintcompression in both environments? b) If you make such large images (why?) you may get a conflict with the

Re: numberFormat affecting array keys???

2017-04-20 Thread hh via use-livecode
> Bob S. wrote: > Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the > name of the array element?? I haven't done ANY math on it. "repeat with i=1 to 10" uses i to count from 1 up to 10 step 1: That's a lot of math you've done to i. Whereas this doesn't touch the

Re: numberFormat affecting array keys???

2017-04-20 Thread hh via use-livecode
> Bob S. wrote: > Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the > name of the array element?? I haven't done ANY math on it. "repeat with i=1 to 10" uses i to count from 1 up to 10 step 1: That's a lot of math you've done to i. Whereas this doesn't touch the

Re: Weirdness with filter (maybe?)

2017-04-20 Thread hh via use-livecode
There is also brilliant work optimized for LC syntax. By the one and only LC-master of regex, Thierry: https://sunny-tdz.com/livecode/sunnyrex > Bob S. wrote: > Filter, unlike matchtext, in the form you are using, is not using regex. > There is a form of > filter however that does. If you need

Browser widget on linux

2017-04-13 Thread hh via use-livecode
>>> Richard G. wrote (in the 'vertical-text'-thread): >>> On disk the Linux build of CEF takes up 135 MBs, and like any >>> browser I would imagine it more than doubles RAM requirements >>> for an app using it. >> hh wrote: >> I would even give a full Gigabyte of RAM if this could make the >>

Re: Browser widget on linux

2017-04-14 Thread hh via use-livecode
Hi all. Panos linked to the following bug report (it is more a discussion): http://quality.livecode.com/show_bug.cgi?id=16848 The final 'workaround' there by Max Vessi solves several issues on linux. The property inspector, the script editor, the dictionary and the browser widget work correcly

Re: AW: vertical text?

2017-04-12 Thread hh via use-livecode
> Richard G. wrote: > On disk the Linux build of CEF takes up 135 MBs, and like any browser I > would imagine it more than doubles RAM requirements for an app using it. I would even give a full Gigabyte of RAM if this could make the browser widget work on linux ...

Re: Browser widget

2017-04-23 Thread hh via use-livecode
Yes, see Dict:API:Browser or tinyDict:Dicts:Browser ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Legofied thistle

2017-04-23 Thread hh via use-livecode
In order to follow the current Lego-Hype of LC's advertising you may create an own 'legofied' version of the thistle that thistles at Thistle street NW, Edinburgh. To have a playground for the little version-boys from LC's homepage... http://forums.livecode.com/viewtopic.php?p=153583#p153583

Working browser widget/linux-flavour combinations?

2017-03-09 Thread hh via use-livecode
I would like to test some browser interaction on linux. Please, could someone who works with a LC version that has NO problems with the browser widget tell me this working 32/64 bit LC version - linux flavour combination? Thanks in advance. ___

Searching "teh" or tihs"

2017-03-09 Thread hh via use-livecode
Searching is important for your project? Would you like to ask "Did you mean the?" if user searches "teh"? I've implemented a fuzzySearch algorithm in LiveCode script: http://forums.livecode.com/viewtopic.php?p=152202#p152202 Now if you wish to look up "the" or "this" then fuzzySearch will find

Re: Searching "teh" or tihs"

2017-03-09 Thread hh via use-livecode
> Peter Bogdanoff wrote: > This looks intriguing! I’m working on a commercial project that > could use this. What is your license? The code is based on pseudocode from https://en.wikipedia.org/wiki/Damerau–Levenshtein_distance From my side it's free for non-commercial use, I only wish to have a

Re: Working browser widget/linux-flavour combinations?

2017-03-09 Thread hh via use-livecode
Thanks Richmond. There are bug reports from Sept 2016 reporting this 'something'-answer you describe above. I tested with Mint 173 to latest, 32bit. Always had to kill LC 8/9 after the the something-dialog, exactly as reported to LQCC (#17715 and links there). I can not believe that nothing

Re: Working browser widget/linux-flavour combinations?

2017-03-09 Thread hh via use-livecode
> Mark Wieder wrote: > ... worked in 9.0-dp6 ... 64-bit Linux Mint 17.3 cinnamon. So I tried Mint 173 cinnamon 32 bit and Mint 181 cinnamon 64 bit, used LC 8 and LC 9, in Virtualbox on Mac and on a 64 bit Linux box. Both show with the browser widget the "something"-window that Richmond described

Re: Messages sent while mouse is down?

2017-03-11 Thread hh via use-livecode
Although there is one scenario where one has to use Mike's looping "within"-approach (adjusted to collecting, not exiting the repeat): If the controls in question (may be all) have some overlapping areas: controlAtLoc((x,y)) reports only the control at (x,y) with the highest layer. > JLG wrote:

Re: LC for Raspberry Pi

2017-03-11 Thread hh via use-livecode
Richard. Thanks for your engagement. I would like to second this with 98%. Let me correct two of your statements (the missing 2%). 1. > RG wrote: > The last RPi build was v704, which is generally good with one critical > issue: a bug in the menu handling routine causes a crash when clicking

Re: LC for Raspberry Pi

2017-03-12 Thread hh via use-livecode
People who are using a Raspi and try or even use LC on it may be inclined to try or use LC if they 'expand' to a tablet or desktop. And their own creations will work after no or small adjustments, WOW. This may cause (delayed) revenue to LC. > Mike K. wrote: > Pi is interesting to me because of

Re: Searching "teh" or tihs"

2017-03-10 Thread hh via use-livecode
1. The algorithm I implemented is for "fuzzy search" of written/typed words, not for "similar sounding words" (soundex), mostly quite different. My demo is scripted for looking up a (mistyped) search string in the 3233 keywords of LCScript. 2. That's for me the true value of LiveCode: Don't talk

Re: Dragging widgets

2017-02-28 Thread hh via use-livecode
> Richmond wrote: > So . . . can any one tell me how to effect a "grab" (which is the same > whether with a PNG image, a button or a graphic object) with a widget? There is one way that is acting similar to a "grab": Put the following into your card's script. Works for widgets and any 'usual'

Re: Negative Numbers and NumberFormat

2017-04-03 Thread hh via use-livecode
TMHO, this could be a feature request rather than a bug report. The zeros in the number format determine the num of characters and "-" is one. Also we have -0 = 0. So what about "-01:-00:-00" ?? > Bob S. wrote: > "-01:00:00"? > Yes I expected this. It's not that I cannot work around it, > it's

Re: Script to find bottom of lowest field

2017-04-03 Thread hh via use-livecode
on mouseUp put 20+maxbottom() end mouseUp -- note: invisible or hidden fields are included function maxbottom repeat with i=1 to the num of fields of this card put the bottom of fld i of this card into b[i] end repeat return max(b) end maxbottom

Re: Line numbers for soft-wrapped styled text?

2017-04-01 Thread hh via use-livecode
> Alex T. wrote: > I set out to optimise the 'visibleLineNumber' function, and succeeded > in getting it down to approx 20% of the original version, by: > - reduce from 2 to 1 height calculations per iteration > - convert from recursive to iterative > - use Newton-Raphson style linear

Re: LC-Magick Collection

2017-04-06 Thread hh via use-livecode
Added today #8: MoonEffect (Elliptical distortion/ Fisheye) Antialiasing part by 'BNig'(Bernd), Distortion part by 'hh'(Hermann). http://forums.livecode.com/viewtopic.php?p=153159#p153159 This is our "easter-egg" for the LC Community! > LC-Magick #7 - Cuboid (3D-Box 'wearing' images) (Hermann

Re: use-livecode Digest, Vol 163, Issue 13

2017-04-06 Thread hh via use-livecode
Richard, these are hard words. 1) The diff is announced _loudly_ in the dict. 2) setting the paintcompression to RLE can speed up significantly in most cases. More than 16GB of RAM and huge GPUs are not from the time when this was introduced (when you was a young boy with curly hair). They

Re: Browser widget on linux

2017-04-13 Thread hh via use-livecode
Hi Pano, thank you very much for coming in. Please correct the typo in the first link. I got "16848 is not a valid bug number" and don't know which report you mean. We all know you do a real good job to collect (and even remove at once some of) and categorize the bugs in a very complicated

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
[Once again, without typos (although it works correctly with the typos)] The following runs in LC 6/7/8/9. ### yields points of an 'elliptical' n0-sided polygon, ### for a 'circular' shape set rx=ry. -- n0 is the number of vertices (= n0+1 points for a closed polygon) -- rx is the horizontal

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> BR wrote: > 1) draw graphic oval name: "moveClue1" > 2) create small image "word_1" > move image "word_1" to the points of grc "moveClue1" in 2 seconds > OK, so how can we generate the points of a perfect oval? > > Scott wrote: > > You can use the effectivePoints to get the points of any

Re: HTML5: mixed signals

2017-07-28 Thread hh via use-livecode
*** The following is how I judge this, not based on any 'official document'. *** Depends a little bit upon what you are doing. The javascript part of the calling web page is always accessible, no matter the license. So, important parts that you have as javascript in the standalone's webpage are

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-29 Thread hh via use-livecode
#wait I don't miss the "wait" handler in HTML5 and I wouldn't miss it in LC Script. I even don't know of any use case where "send in " (which works perfectly in HTML5) isn't superior to "wait". Especially when connected to move/animation. Also I don't miss "wait" in LC Builder. There OnTimer() is

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> Mark wrote: >> How do you define "strict geometry"? > That would be my seventh-grade math teacher >> And what is an "infinite amount"? > For points in an oval, that would be Aleph-one, no? I see. When you selected to return 360 points for the effective points of an oval (what is, TMHO, a

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> Bob S. wrote: > By strict geometry, an infinite amount. Using Bezier, 4. :-) Just because I am curious which part of your statement is the joke: How do you define "strict geometry"? And what is an "infinite amount"? ___ use-livecode mailing list

Re: template stacks

2017-07-28 Thread hh via use-livecode
Forget to remark: revIDENewMainstack 40,30 = revIDENewMainstack 400,400 because revIDENewMainstack yourWidth,yourHeight sets new width to the maximum of yourWidth and 400 sets new height to the maximum of yourHeight and 400 ___ use-livecode

Re: template stacks

2017-07-28 Thread hh via use-livecode
> Richmond wrote: > From LiveCode 8.0 upwards when one wants a new stack one is given a > menu of choices for iPads, iPhones and so on. > Is there a way to edit that menu PERMANENTLY so one can accommodate > one's own sizes? Just type into the messageBox revIDENewMainstack , for example:

Re: template stacks

2017-07-28 Thread hh via use-livecode
Of course my "look-up" in the IDE: revIDENewMainstack max(,400),max(,400) is quick and dirty compared to the clever plugin-solution of Klaus: http://lists.runrev.com/pipermail/use-livecode/2017-July/239883.html Sorry Klaus. I overlooked your post. I really write too much and read too

Re: Wait, the problem, and why it is important to solve

2017-07-30 Thread hh via use-livecode
Wow. You say (using stars) it would make sense to implement wait in HTML5 for some features that do _not_ (yet) work in HTML5. Will be a great enhancement side-effect. I look forward to that. Peter-B already implemented wait in 2015, see bug #16076. This caused an _additional_ slow down by a

Re: CEF Browser - what is wrong with my script

2017-07-30 Thread hh via use-livecode
@Matthias "revbrowserOpenCEF" is deprecated since at least one year or so. Also note: revBrowserInstances() doesn't work after"revbrowserOpenCEF". Also note if you use revBrowserOpen: Then Mac is the only platform that supports HTML5/canvas2d. ___

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
I have already done what you describe in a HTML5 standalone for displaying progress along a Bezier curve, using LC Script only. http://hh.on-rev.com/html5/hhProgressHTML5_2-8.0.2X.html And it is done for all LC's SVG icons using the jquery-drawsvg plugin in a browser widget (incl. optional affine

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
> Mark wrote: > So, at the level of the graphic object it is a true arc, at the level of > instructing > the graphics library it is a Bézier approximation but at the level of working > out what > pixels to render it is a polygon. Thanks for arriving from your previous post at this very clear

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
The effective points of an oval (circle) are the 360 points of a regular polygon with 360 vertices (if it's closed). You could look at stack #2 of the Raspi-Collection, runs on Mac/Win/linux using LC 6/7/8/9: http://forums.livecode.com/viewtopic.php?p=98716#p98716 (in LC 8/9 add a semicolon after

Re: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread hh via use-livecode
> Monte wrote: > ... G drinking holiday ;-) Practising Geometry & Trigonometry and drinking?? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Simplify polygon

2017-08-15 Thread hh via use-livecode
Today I implemented the Ramer-Douglas-Peucker algorithm for reducing the number of points of a polygon such that the "shape" of that polygon is preserved as good as possible, controlled by a tolerance parameter. This is known as "simplifying" of a polygon (is also done for polygon/ polyline paths

Re: Couple of questions about the browser widget

2017-08-16 Thread hh via use-livecode
Additional to Jonathan's instructions. Basic: http://forums.livecode.com/viewtopic.php?f=7=29589 Medium: Get MouseEvents from browser widget http://forums.livecode.com/viewtopic.php?p=154496#p154496 and others there (7 Browser Widget usage examples) ...

Re: Forum: Waves of Russian Nonsense

2017-08-15 Thread hh via use-livecode
>> Mark wrote: >> This is getting annoying. > Klaus wrote: > I just deleted 71 slavic spam postings from the forum manually again, > now THAT is getting annoying! +71 for you. Thanks for that. But better stop manual deletion now. As long as you do that probably nothing will improve/change. It

Re: lockscreen?

2017-08-15 Thread hh via use-livecode
> Richmond wrote: > If I lock the screen (so these automations don't show up) will that > speed things up? lock screen; lock messages ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: JPNG

2017-08-11 Thread hh via use-livecode
@Mark *** Thanks for your expertise. I couldn't do that this perfectly. *** One of the reasons for posting this JPNG stack is to show the power of LC: The essential code of compressing PNG -> JPNG and decompresing PNG -> JPNG is both less than 10 *essential* lines of code, using comfortable LC

JPNG

2017-08-10 Thread hh via use-livecode
JPNG (named using JPEG and PNG) is not an image format but a compression method. We use the file ending ".lcjpng" for that. It takes features from both JPEG (setting JPEGquality to compress the imageData and from the PNG compression the alphaData/transparency). It saves the alphaData, optionally

Re: Problem showing card script in IDE in LC9.0.0(dp7)

2017-07-07 Thread hh via use-livecode
http://quality.livecode.com/show_bug.cgi?id=19887 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: intersect . . . invisible images

2017-07-17 Thread hh via use-livecode
> Richmond M. wrote: > That's because Richmond doesn't share your sense of humour, > and never really could understand North American jokes . . . As I read this thread (as a non-native speaker), none of the jokes was against you as person. And mine was based on a very old forum thread connected

  1   2   3   4   5   6   7   8   9   >