Skip to content

bug fixing in animations and adding Geometric Objects#20

Merged
nickmcintyre merged 68 commits intodevelopfrom
GObject
Aug 18, 2021
Merged

bug fixing in animations and adding Geometric Objects#20
nickmcintyre merged 68 commits intodevelopfrom
GObject

Conversation

@two-ticks
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner Author

  • fix overflowing

@two-ticks
Copy link
Copy Markdown
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
Copy Markdown
Owner Author

PR for improving GObject: #22

@two-ticks two-ticks requested a review from nickmcintyre August 17, 2021 15:50
@two-ticks
Copy link
Copy Markdown
Owner Author

two-ticks commented Aug 17, 2021

Should we merge beginGraph in GObject ? #25

Copy link
Copy Markdown
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.

3 participants