GithubHelp home page GithubHelp logo

hundredrabbits / dotgrid Goto Github PK

View Code? Open in Web Editor NEW
1.0K 21.0 75.0 2.58 MB

Minimalist Vector Tool

Home Page: https://hundredrabbits.itch.io/dotgrid

License: Other

HTML 63.42% CSS 0.44% JavaScript 35.98% Shell 0.16%
vector tool drawing drawing-app

dotgrid's Introduction

Hundred Rabbits

This repository is the sources for the Hundred Rabbits website. The website is written in C, and requires gcc to build. To rebuild the site, run the build script:

make run

Extras

  • Pull Requests are welcome.
  • The source code of 100r.co is licensed under MIT and the images, text and assets are licensed under BY-NC-SA 4.0. View individual licenses for details..

dotgrid's People

Contributors

0x0ade avatar akx avatar cantbesure1 avatar eelfroth avatar jaybaptista avatar joshavanier avatar jrc03c avatar kalkhas avatar lyninx avatar mixmix avatar neauoire avatar rekkabell avatar tbd avatar tong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotgrid's Issues

Define size

Would be great to be able to define size of the vector in order to make tray icon for application. Like 16px.

Curves not mirroring properly

When defining a curve, it doesn't mirror horizontally as expected, instead it mirrors the points but the curve isn't mirrored exactly.

image

Weird things happen after I close a path

(Using Windows 10 64 bit, binaries from itch.io)

  1. Place control points in a triangle and press D to form an incomplete triangle
  2. Press R to close the path
  3. Draw a segment someplace else with control points and D
  4. Notice that the segment uses one of the points from the triangle as a control point.

Step 4 does not happen if you do steps 1 and 3 without doing 2.

Guide Dots don't override layer

With a version from around October, i was able to fill in the 3rd layer completely black, then go to the first layer and the guiding dots would show up in grey over top of the black layer. With the previous 2 versions, this is not possible, and im not sure if it was intentional or not. If this could be toggleable, or put back into the system, i could use it so much more. I used to use this app for all my Macbook's App Icons, using black square backgrounds. Now i cant create them because i cant see what im doing. (i realize i can create the white outline first, but i dislike doing this because it doesnt give me the idea of what it would look like as a final product.)

Clean the drawing area

Allow the user to clean/reset the drawing area by doing ctrl+n or clicking on a reset UI button.

Image size gets greater every time you save

Every time you press the commands to save/export/render a file it gets ~2 times bigger.
If the image is 300x300, it'll be 600x600, then 1200x1200, etc.
The window doesn't grow with it though so you only notice this when the image is saved (or when you try to modify the image size).

There is no need to actually save the file to get this behaviour, only press the keys.

close single path

Hi! Is it possible to close single path? May be close paths by layer?

screen shot 2018-03-04 at 13 17 26

Resize window on Windows 8 not possible

It's not possible to resize the window size on Windows 8 any more.
Don't know if its related to german keyboard, or what exactly is going wrong.
Maybe it's better if you are on plattform windows, to readd the window borders again?

Great software by the way :-)

Window resizing breaks symmetry

For context I am using i3, a tiling window manager, so my windows tend to change size a lot.
However, it seems that the centerpoint of the canvas is linked to the present size of the window,
so if my window size changes, then my symmetry axis drifts.
Particulary for me, this means that in order to have stable symmetry, I need to fullscreen dotgrid, but that means I cannot have reference images open at the same time.

Unsure if #32 is relevant. It might be a small addition to that or core to fix this issue.

Symmetry and arc_*

Creating a three point arc_c or arc_d, and then enabling symmetry make the mirrored part use the opposite tool. IE, arc_c is mirrored to an arc_d in rotational symmetric mirroring mode. (mirror mode three?)

tested on linux, and web versions, both freshly downloaded as of today.

Potential Bug: Grid Disappears After Theme Change (Chrome - OSX)

CleanShot 2020-05-29 at 17 37 21

I have noticed a strange issue when I change the theme for Dotgrid wrapped (OSX) and unwrapped in chrome.

Every time I change the theme using the .svg files provided in the theme directory. The grid disappears, I don't know if it's something I'm doing wrong but it happens every time.

Feature Request: More than three layers

Hopefully, this isn't too much trouble, but I was wondering if there are only three layers for a reason, or if more could be added.

I really enjoy using this tool, thanks.

Suggestion: Bake Mirror

Crest mode aside, being able to "bake" the mirroring (creating a copy of the geometry with the transform applied) to create new points would be a pretty powerful way to create complex, editable geometry quickly. Bake Mirror to Layer > 1, 2, 3 would also be a nice addendum.

Rendering only on mouse hover/movement

Connecting ORCΛ to Dotgrid reveals that Dotgrid will only update when the mouse is on the windows (focuesd) and even then only when the mouse is moved. Issue present on Dotgrid V132 downloaded from ITCH client both on a desktop running Arch Linux and a 2015 MacbookPro running the latest MacOS.

Problem with Keyboard shortcuts on German Layout on Linux and Windows

The keyboard shortcuts for increasing/decreasing the line width don't seem to work properly on Linux when using the German Keyboard Layout (X11 Layout: de according to localectl status)

"decrease line width" appears to be mapped to the ß key and I haven't found the "increase line width"

A similar Problem occurs on Windows 7, except that here both increase and decrease work but are mapped to ` and ß.

Unable to open saved dot's files

Hi again! i'm unable to open previously created files after upgrade dotgrid to version 49. There is nothing errors or warnings in Inpect. Did you make some break changes with dot's format? Should i recreate existing files?

Remove with right click

Add the ability to remove a specific point from the drawing area by doing a right click on the point.

Is the project open to contributions?

Just like the title sais.
I can contribute with ideas for features and maybe code, some automated tests.
What would be the best way to contribute? I left a few comments in Mastodon about my initial ideas.

  • I think more than 3 layers would allow more flexibility
  • I don't really understand what is actually selected and how deleting shapes works; Maybe there's some room for improvement? Or maybe it's something not documented?
  • .grid format might be more flexible if it was JSON5 - not sure if the project allows extra libraries for that?

Unselecting "move point"

Dear Dotgrid team,
thanks for creating this minimalistic, yet awesome design tool 😍 😌

I'd like to suggest a simple and arguably expected behaviour:
Pressing "Esc" should unfocus/ unselect/ drop the "move point" option.
image

I have to click around a lot until I get rid of the dragged line and I still don't know the trick 😃 .
There's also no option in the menu as in GIMP to "unselect everything" (including the mentioned issue).
Active tools should preferably be highlighted, but of course this might be not minimalistic enough.

I might be "simple minded", but then again, a lot of people are. I think an easy click of escape would be a balanced solution.
Again, thanks a lot and all the best! 💯

[bug] Can't select text for exporting when using Beaker

Priority

Critical

Steps to Reproduce

  • open site in Beaker
  • make a thing
  • press (e) to export the thing
  • try in vain to select text for export with copy-paste
  • lay down & cry 😭 , fall asleep on wet pillow

Expected

Selectable text to copypaste to file

Actual

Can see text but cannot select it for copypaste, must instead visually type in every detail into other file 😞

Versions

Beaker 0.7.7
Dotgrid current (no version # supplied)
xubuntu linux zesty

NOTE: Should this be labeled specifically for Beaker Browser in some manner?

Suggestion: Add Guidance on Usage via Browser, Suggestions, Pitfalls, etc.

Hello!

With the app now being delivered through a single html file (👏), folks who attempt to open the app locally (i.e through the file:///path URI) via a modern, Chromium-based browser will run into a hurdle:

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

If the "Block third-party cookies" setting is enabled.

A quick fix is to disable the setting, unblocking third-party cookies for all sites. But I would imagine the privacy-minded folks, myself included, wouldn't be too happy with that. Chromium allows you to add specific URLs or hostnames to an "Allow" list, however adding the specific file URI to the allow list does not work here because localStorage is per domain , and the file:/// URI scheme has an empty hostname by default (an insight gathered from this StackOverflow answer).

A workaround is to add localhost/127.0.0.1 to the "Allow" list, and then visit http://localhost/.../index.html using a local webserver. (adding localhost to the "Allow" list and then specifying the hostname in the file URI, e.g file://localhost/Users/me/dotgrid-main/index.html, does not work for some reason 🤷)


Would you consider adding a little section in the docs that describe some basics on opening via a browser, suggestions, pitfalls, etc. ? I know your philosophy is Linux-first and I've seen you recommend browsers like surf and Next. But I think some guidance here would be helpful for those using Chromium-based browsers starting, with the third-party cookie issue described above.

Thanks for all the great work!

[Feature Request] Run dotgrid at 2x/3x scale

I have tried using dotgrid on my laptop that not only has a small-ish screen, but it also runs at high resolution, which ends up with dotgrid window being smaller than a quarter of my screen. This is far from perfect, and makes the grid really hard to see.

It would be really helpful if the app could be run at a larger scale (command option to run the .exe with parameter -2x would be plenty)

UDP control expansion?

The UDP control is relatively limited, some potential improvements include control of:
line thickness,
fill,
color,
and mirroring

Speaking of mirroring, UDP controlled input does not mirror like by-hand input.

Finally, it appears that the clear command over UDP does not respect layers but instead clears everything. I haven't yet tested if the same is true for draw or if layers are respected at all, as I'm unsure if this is simply a misunderstanding of the desired behavior.

Suggestion: moving selected area

Would be great to be able to select a rectangle area and move all control points in it at once.
Thanks for this awesome thing!

I'm using Linux|BSPWM|webapp

can't save a resulting image

Ubuntu 18.10
I cant save nor in svg nor in png format. the window with directories tree freezes and becomes unresponsive. :(

when launched as electorn package through npm start saw an error g-io-error-quark, 13

saving only works in browser here https://hundredrabbits.github.io/Dotgrid/ but, when I save 'mirrored' image - canvas resizes faster than the actual saving (canvas resize prodused by Chrome, when it show the downloading process at the bottom)

Suggestion: Implement the ability to select multiple dots.

Today I was playing around with Dotgrid and trying to make a spritesheet of minimalist icons. However, I eventually needed a bit more room and needed to move around the sprites to get that room. But the only way I can see from the Dotgrid documentation for moving those sprites is to drag each dot up, individually, until they are all where I want 'em to be.

So I think implementing a way to select multiple dots and manipulate them all at once would be beneficial to users who have lots of dots onscreen and would have to go through the tedious process of moving them all individually if the need arises.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.