Re: Atkinson dither algorithm

2017-10-14 Thread Alejandro Tejada via use-livecode
Hi All, This forum message contains the final version of this stack. It includes a Color version of this algorithm. https://forums.livecode.com/viewtopic.php?f=10=159173#p159173 Thanks again to Malte Brill, Richard Gaskin, Hermann Hoch, Mark Waddingham, Peter Reid, Ben Rubinstein, Bob Sneidar

Re: [ANN] Release 8.2.0 DP-2

2017-10-14 Thread Mike Kerner via use-livecode
That, and the standalone settings are on my list of things I want to take a shot at when I get time. The PB is buggy, and I miss thumbnails. On Fri, Oct 13, 2017 at 5:41 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 10/13/2017 12:40 PM, J. Landman Gay via

Rotating widgets

2017-10-14 Thread Alejandro Tejada via use-livecode
Hi All, Effectively, SVG Icon widget grows and shrink when rotating, but Peter Thirkell SVG Multicolor widget does not. This Multicolor svg widget only clips it's content and stays the same size. Richmond, Have you installed SVG Multicolor widget? Download and install from this forum thread:

Re: is a date

2017-10-14 Thread Michael Doub via use-livecode
What about this from the Master Library from Ken Ray? function isDate pWhat    /* isDate Date    Syntax:    isDate (pWhat)    Examples:    isDate("10/10/2001")    Description:    Determines if the container passed to it in contains a valid date.    Returns true or false.    Source:    Ken

Re: is a date

2017-10-14 Thread J. Landman Gay via use-livecode
On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote: Try this function CheckDate pDateToCheck return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") end CheckDate Promising, but fails with dates like "1/1/19". -- Jacqueline Landman Gay |

Re: Rotating widgets

2017-10-14 Thread J. Landman Gay via use-livecode
Another disadvantage of using a rotated SVG is that is will resize to fill its rectangle when rotating. The clock hand will change its size on each rotation. On 10/14/17 2:17 PM, Tore Nilsen via use-livecode wrote: That is why I suggest using a png-file, where all but the hand is transparent.

Re: Rotating widgets

2017-10-14 Thread Tore Nilsen via use-livecode
That is why I suggest using a png-file, where all but the hand is transparent. Setting the resizeQuality to best should give a good result without reducing the speed of any animation you do. Tore > 14. okt. 2017 kl. 21:06 skrev Richmond Mathewson via use-livecode >

Re: is a date

2017-10-14 Thread Yves COPPE via use-livecode
Hi, Try this function CheckDate pDateToCheck return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") end CheckDate answer CheckDate(tDate) > Le 14 oct. 2017 à 19:27, Roger Eller via use-livecode > a écrit : > >

Re: Rotating widgets

2017-10-14 Thread Richmond Mathewson via use-livecode
But one cannot make an SVG image "twice as long, with half of it transparent": belive me I have tried that already. Richmond. On 10/14/17 9:44 pm, Mark Wieder via use-livecode wrote: On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote: You would probably be better off using a

Re: Rotating widgets

2017-10-14 Thread Mark Wieder via use-livecode
On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote: You would probably be better off using a transparent png-image that is square for the clock hand, and where the rotation point of the clock hand was at the center of the square. You could then put the clock hand on top of the clock

Re: Rotating widgets

2017-10-14 Thread Tore Nilsen via use-livecode
You would probably be better off using a transparent png-image that is square for the clock hand, and where the rotation point of the clock hand was at the center of the square. You could then put the clock hand on top of the clock face and rotate the hand at will. My students hand the same

Rotating widgets

2017-10-14 Thread Richmond Mathewson via use-livecode
I am getting a bit fudgey with clock hands. I have used my SVG importer stack to import a minute and an hour hand as SVG widgets, as well as a clock face. The "only snag" is that when I do this sort of thing: set the angle of widget "hourHand" to 90 it rotates the widget round its centre

Re: is a date

2017-10-14 Thread Roger Eller via use-livecode
That's what I suspected. So to build a slightly better trap, I am doing this: if tDate is a date and length(tDate) > 5 and tDate contains "/" then put "true" else put "false" end if I am sure there is probably a standard way to catch all possible date formats (excluding "the seconds"),

Re: is a date

2017-10-14 Thread Klaus major-k via use-livecode
Hi Roger, > Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode > : > > put "11/20/2017" is a date > returns true > > put "10" is a date > returns true > > put "raccoon" is a date > returns false > > > WHY is "10" seen as a date? looks

is a date

2017-10-14 Thread Roger Eller via use-livecode
put "11/20/2017" is a date returns true put "10" is a date returns true put "raccoon" is a date returns false WHY is "10" seen as a date? ~Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to