Giter VIP home page Giter VIP logo

rotating-rectangles-animation's People

Watchers

 avatar

rotating-rectangles-animation's Issues

Reset button doesn't reset values on sliders

Clicking the reset button leaves the values of the sliders unchanged. The best way to fix this would probably be by chaining their logic together, which would entail rewriting how the siders are created

Add style to disabled buttons

Disabled buttons with the .btn class look exactly the same as enabled buttons currently. This is a problem, as it doesn't show the user when they can download a gif and when not

Turn animate() into some object

Currently, there is only one function, that resets the animation when called. Several of the features here would be easier to implement and even the current code might get easier to read by turning the animate() function into some sort of object with different methods attached to it.

Let user change from stroking to filling rectangles

Add a button or something of the sort to let the user switch between stroking and filling rectangles with colors. This would probably only work, if you could change the color of each individual inner rectangle.

Make gif-creation optional

Make it optional to make a gif and let the user otherwise just watch their creation unfold in the canvas

Make colors changeable

Add color inputs to change the background color of the canvas and the stroke color for inner rectangles

Calculate frames for gif on an offscreen canvas

This would allow the user to create a gif of variable size (not boound by screen width). It would also allow to calculate all frames without delays set by an interval and wouldn't have to be restarted on resize events.

Variable angle increases

Allow the user change the angle increase by some factor for inner rectangles.

The idea is that rectangles should be allowed to spin faster/slower based on user input. How exactly this could be implemented, I am unsure of right now still.

This would entail changing how the animation currently works and especially recognizing when the animation is finished.

Add reset initial options button

Add a button to reset all animations options to its default. Make sure that the width & height stay fitting to the current canvas size though.

Replace "Gif was aborted" text

"Gif was aborted" is not a useful information in and of itself for the user. Rather tell the user that a new gif is being worked on. Maybe something "New gif is being created" or something like that

Add dark theme

Either make the whole website dark themed or add a dark theme possibility

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.