Richmond's Delusional Fever

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Richmond's Delusional Fever

Post by richmond62 » Tue Nov 08, 2022 12:05 pm

c.f. https://forums.livecode.com/viewtopic.php?f=5&t=37435
Richmond has a bit of the sort of delusional fever I do. EVERYTHING is possible in LC, and none terribly onerous.
-
Screen Shot 2022-11-08 at 1.02.08 PM.png
-
This imports a series of SVG widgets from this file:

https://github.com/NucleoApp/google-mat ... icons.json

BUT . . . so far . . . cannot manage the fill paths . . .
Attachments
JSON - SVG.livecode.zip
Stack.
(2.31 KiB) Downloaded 53 times

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4000
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Richmond's Delusional Fever

Post by bn » Tue Nov 08, 2022 8:46 pm

richmond62 wrote:
Tue Nov 08, 2022 12:05 pm
c.f. https://forums.livecode.com/viewtopic.php?f=5&t=37435
Richmond has a bit of the sort of delusional fever I do. EVERYTHING is possible in LC, and none terribly onerous.
-
Screen Shot 2022-11-08 at 1.02.08 PM.png
-
This imports a series of SVG widgets from this file:

https://github.com/NucleoApp/google-mat ... icons.json

BUT . . . so far . . . cannot manage the fill paths . . .
The SVG widget can not handle color. That said here is a version of your stack that just concatenates paths and the result depends on wether the icon uses color to differentiate elements. Some just are black.

The file you linked to has over 4200 icons.
In my stack I limit this to 1200.
As far as I can see the stack does what it is supposed to do as far as extracting paths. But not guarantee.

Kind regards
Bernd


JSON - SVG_2.livecode.zip
(2.8 KiB) Downloaded 49 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Richmond's Delusional Fever

Post by richmond62 » Wed Nov 09, 2022 4:59 pm

Unfortunately, when one imports an SVG directly into LiveCode
one cannot 'get at' its points and so forth:
-
SShot 2022-11-09 at 17.57.56.png
-
And opening the same image in Inkscape is not really much help at all as it appears
as a composite:
-
SShot 2022-11-09 at 18.01.06.png
SShot 2022-11-09 at 18.01.06.png (13.45 KiB) Viewed 1321 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Richmond's Delusional Fever

Post by richmond62 » Wed Nov 09, 2022 5:27 pm

Unfortunately, when I stated I admired Toussaint Louverture Alejandro took extreme umbrage
and cut off completely, including deleting all his very clever stacks for coping with SVG files which might
have been leveraged for dealing with the type of JSON file containing SVG font definitions.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”