Giter VIP home page Giter VIP logo

Comments (6)

OverloadedOrama avatar OverloadedOrama commented on May 21, 2024

Good eye! I have noticed that myself as well. I'm not sure how this can be solved, since all the logic is being handled by Godot's color picker. However, I plan to eventually create a custom color picker with a color-selector-from-screen tool which will get the color of the pixel on the mouse's position. This should be fairly easy to do.

from pixelorama.

azagaya avatar azagaya commented on May 21, 2024

In the meantime, until you make the custom color picker, you could not draw the blue rect if Global.can_draw is false. I made the test, and imho is more comfortable this way, as picking blue accidentally makes you (at best) have to go and pick color again. I can make a PR for you for this, so you can test even if you are not interested in this change.

from pixelorama.

OverloadedOrama avatar OverloadedOrama commented on May 21, 2024

That sounds very interesting actually. A PR would be appreciated!

from pixelorama.

azagaya avatar azagaya commented on May 21, 2024

You could also use warp_mouse() to move mouse always to the center of a pixel, but i think its a bit more complicated, cause you'll have to handle different rates when zooming and so.

from pixelorama.

OverloadedOrama avatar OverloadedOrama commented on May 21, 2024

That could work, but I think your PR solved the problem already, so I guess I'll close this issue as well. Thank you for the contribution! :D

from pixelorama.

azagaya avatar azagaya commented on May 21, 2024

You are welcome! glad to help

from pixelorama.

Related Issues (20)

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.