Frederik De Bleser

Results 186 comments of Frederik De Bleser

Yes, a `Path` object has a `.contains` method that takes an x/y argument. This also works on a `Group`.

Here's the source: https://github.com/nodebox/g.js/blob/88c9deaba4d57855915264dec4bcf8054b230f17/src/libraries/vg/objects/path.js#L396

@forresto here you go: https://g.js.org/ It's still missing some interactive console to play around, but you can find a lot of the docs there already.

Here's a demonstration for a news site generator: https://seed.emrg.be/sketch/-L6GFAVSkAzLiyg3bu-s Note that the topic "Lifestyle" occurs twice. I want to create a special syntax that forces the system to pick each...

I don't think it has to conflict. It just has a set of options that are *also* conditional. This means that if there are two options that satisfy the condition...

To generalize this problem, we could introduce a system of dictionary lookups that can match keys to values. In the gender case, it could match names to pronouns, for example....

I'm not quite sure how it would work. I think we need to look at it more generally, not just as a gender-specifier but as a generic mapping from keys...

I would suggest creating a special URL route that *only* shows the output (like the embed view, but without the source editor and navigation bar), then use Chrome Headless to...

Yes, a basic webservice that takes in a Seed URL or Sketch address and outputs a GIF image. This could be the API address: https://seedgif.herokuapp.com/create?sketch=-L4uLB99JzFHMPcVoiTm

Here's some documentation on running Headless Chrome on Heroku: https://timleland.com/headless-chrome-on-heroku/ The official Heroku buildpack looks promising: https://elements.heroku.com/buildpacks/minted/heroku-buildpack-chrome-headless