8/18/2023 0 Comments Origami studio for beginners![]() Clicking on a shapes revealing the layer.Direct manipulation of shapes (moving them, changing their size).(Read that last sentence over again and realize that it doesn't apply to any other programming language. There’s no Stackoverflow for Origami Studio, and I didn’t mind at all. This is partly because some of their blocks are quite general and powerful, and partly due to excellent attention-to-detail. Whenever I needed something, they almost always had a block for it. The library wasn't large, but it felt like they’ve thought of everything. In the following video we create such a node and demonstrate its workings by editing the node input values manually. ![]() It automatically detects variable names and converts them into inputs. Origami neatly solves this issue with a "Math Expression" node, which can evaluate any JavaScript math expression. Clearly a more compact notation is preferred. One of the common complaints of node-and-wire frameworks is that it can take dozens of nodes for a simple mathematical expression. We then attach the time patch to the height argument to show how seamlessly arguments can be used. In the following video we modify the default iOS button switch component to take an extra height argument and hook it up properly. Editing a component takes place on a seperate screen where the inputs are source patches. Components can accept inputs, which allow users of the component to modify those properties without worrying about the details. ComponentsĪbstraction is accomplished through components, which are a group of layers that behave like a single layer. In the following video we create a number of circles and spread them out visually by attaching the index port (multiplied by some factor) to the x and y properties of the circle layer. Another way to think of it: functional programming's map made intuitive. Instead of looping as a control-flow mechanism ("repeat these lines of code"), it allows for looping over objects. You merely attach the index output port of a loop patch into any property of a layer to duplicate the layer. Loops, one of the most confusing concepts for non-programmers, is made totally intuitive in Origami. ![]() It's so convenient to be able to examine changes instantly without having to re-build temporary state by hand each time. You can make a large number of changes to your prototype's logic without triggering a total refresh.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |