lilliemarck / linjal-py Goto Github PK
View Code? Open in Web Editor NEWCreate pixel art with vector graphics
Create pixel art with vector graphics
Right click the toolbar and uncheck the checkbox. Disable this behavior or add whatever functionality should be used to show them again.
Load a bitmap in the background that can be used for tracing existing pixel art sprites. Make it easy to swap between showing background and vectors, background only and vectors only.
This does not make sense for individual nodes. The pasted copies should be deep copies.
The editing is supposed to be done at a high zoom level. Make the document zoomable with the scholl wheel and menus or toolbar.
There is probably no standard icons to cover all tools needed for Linjal. Consider making icons with Linjal itself!
Show as lines or dots or disabled. Choose the style with a menu command. Turn the grid off when zoomed out. Show where the origin is located.
When adding a new point it should be movable until the mouse button is released.
Add a color palette with RGBA colors. Colors can be added, removed and edited.
The origin of the document and of groups should be easy to move. This is easier than selecting all shapes and move those manually. This it not important now but there are plans to make groups and shapes will be referenced to appear elsewhere.
The documents displays only one single shape with a fixed color. Path nodes can be inserted, erased and moved. The points will only be placable in half pixel increments.
Pasting like this will make it possible to reuse shapes and have all of them update when one is changed. One day when Linjal supports animations this will be important.
See QUndoCommand.
Have a group and ungroup command. When grouped the shapes act as a single object that can be moved as a whole. It must be possible to enter a group and edit the shapes inside.
Add a rectangle selection tool. Select points with the rectangle or by clicking on nodes. Make the whole selection movable. For simplicity don't move the control points at all in this issue.
This is needed for the first milestone. Choose a nice file format. Probably JSON.
Show the outline for the full artwork and for groups and shapes. This give the user a sense of the size of the document.
Export to PNG or some other format (perhaps even SVG). Select the scale amount and rasterize the image with that scale.
Ability to begin new shapes and edit their nodes. Switch between which shapes is being edited. Remove shapes that are empty. No need to work with shapes as a whole such as moving or deleting them.
Not sure if this is necessary. When drawing long diagonal lines it would be nice to see if the slope is 1:2 or so but if Linjal is going to show a grid anyway it will be clear anyway.
Have a single control point per node. If the control point is placed on the line that extends to the next node the line will be straight. One such point is of course directly at the next node. If the control points is placed in the "bounding box corner" the curve will create a quadrant of an ellipse.
Somehow apply a color from the palette onto a shape. Need only apply to one shape at a time. The color is applied by reference so If the color palette is updated the shape's color will be updated too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.