Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fixing in animations and adding Geometric Objects #20

Merged
merged 68 commits into from
Aug 18, 2021
Merged

Conversation

two-ticks
Copy link
Owner

@two-ticks two-ticks commented Jul 9, 2021

TODO

  • refactor play function
  • fix animation i.e. staggering, gradual fill etc.
  • test cases for play and scene
  • controls and timeline
  • Geometric objects

@two-ticks
Copy link
Owner Author

two-ticks commented Jul 9, 2021

Feature : style(property, value) method
Problem: works only when add or play has been called (solved)

  let title = createText("Pythagoras' Theorem")
  title.style('font-family', 'Courier New')

image

https://editor.p5js.org/radium.scientist/sketches/-XYDcX-B2

  let title = createText("Pythagoras' Theorem")
  title.position(20, 50)
  title.fill(GOLD20)
  title.size(30)
  //title.style('font-family', 'Courier New') //will not work
  title.play('growFromCenter', 1, 2)
  title.style('font-family', 'Courier New') //works only after play or add has been called 

@two-ticks
Copy link
Owner Author

  • fix overflowing

@two-ticks
Copy link
Owner Author

clock() returns current time of animation in milliseconds

function draw() {
  t = clock(); //sets t = time of animation timeline
}

Description of example : position of rectangle is changed according to animation timeline
vA89EWIwIn

@two-ticks
Copy link
Owner Author

PR for improving GObject: #22

@two-ticks
Copy link
Owner Author

two-ticks commented Aug 17, 2021

Should we merge beginGraph in GObject ? #25

Copy link
Collaborator

@nickmcintyre nickmcintyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @two-ticks! The library is really becoming a joy to use.

@nickmcintyre nickmcintyre merged commit 6b52efc into develop Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants