News for hackers. Stuff that matters.
Re:Experiments in Constraint-Based Graphic Design by egypturnash on Thursday December 12, 2019 @09:03PM (#21778534)
> What if the figure design were changed slightly, for example the circle was to be inscribed in the rectangle? With Illustrator, it requires recomputing all the positions by hand; with Basalt, the change is one line of code:

Hi. I've been using Illustrator as my main art tool for most of twenty years.

1. Draw a circle. Give it a stroke in some color.

2. Open the Appearance palette.

3. Using the button at the bottom of the Appearance palette, add a new stroke. Make it another color.

4. Select this stroke and add effect>convert to shape>rectangle, relative sizing, add 0pt in X and Y.

5. Add effect>distort and transform>transform to the stroke. 70% in X and Y.

6. Open the Graphic Style palette and make a new style. Give it a name.

7. Visit the Appearance palette's menu and turn off "new objects have basic appearance".

8. Select the Graphic Style you made, draw some circles using it.

9. Turn off the Transform effect in the Appearance palette; hit 'redefine Graphic Style' and watch every circle change.

While your later examples like "make a little graph constrained to a shield" are more complex to make, there's still ways AI could help you do this stuff - you could maybe make a pattern brush with a circle for the end and corner pieces, and empty space for the main body, pile that on top of a plain stroke, and quickly drag some points around until you had a shape you like.

Eventually your examples get out of the territory of things I'd consider sane to do automatically in the tools AI has. But it can do more than you think.

okay enough procrastinating back to drawing my crazy comic in AI :)

Re:Experiments in Constraint-Based Graphic Design by Atomskun on Thursday December 12, 2019 @11:59PM (#21779234)
I don't understand neither the author's nor yours approach to doing this in Illustrator.

If you want to have a square inset into a circle in Affinity Designer, you:

- Draw a circle.

- Create a square from the middle of the circle outwards. The square will _constraint_ perfectly to the circle.

If you want to do the reverse (circle inside square), it's even easier since the bounding box of the 2 objects is one and the same ...

I have the feeling that the author is simply unfamiliar with current design programs. Those haven't stagnated like one might think from the article.

Re:Experiments in Constraint-Based Graphic Design by egypturnash on Friday December 13, 2019 @12:02AM (#21779240)
It's more about drawing multiple squared circles without hassling with cut-and-paste.
Re:Experiments in Constraint-Based Graphic Design by TeMPOraL on Friday December 13, 2019 @01:17AM (#21779507)
Cut-and-paste isn't a hassle, it's a very ergonomic tool.

I've seen some drawing software once that was particularly nice in that it pasted under your mouse (instead of next to the copied object, or in the middle of your viewport, etc.). Unfortunately, I can't remember which software was that.