Skip to content

Conversation

@ismyasmin
Copy link

Completed documentation and code

ismyasmin and others added 30 commits April 30, 2024 20:53
… instance of Worm, passing this as a parameter to its' constructor.
…. draw() Method if current is 1, worm visual component renders again
… parent. Worm parameters created. Constructor for the Worm class, taking a MyVisual instance as input.
…orm height values and computes worm heights for multiple worms combined together.
…sual instance, block colors related, angel of rotation, offsets, boxes related. Constructor public RotatingShape(MyVisual mv) contains MyVisual reference, array storing values, calling methods
…r transitions based on audio input, initializes block colors, handles box rotation and translation.
…al.java file, instance variable rotatingBlocks declared. Initialized instance of RotatingBlocks, passing this as a parameter to its' constructor. key pressed 2 with rotatingBlocks.render() to render the RotatingBlocks visual componenets. draw() Method if current is 2, rotatingBlocks visual component renders again.
…al.java file, instance variable rotatingBlocks declared. Initialized instance of RotatingBlocks, passing this as a parameter to its' constructor. key pressed 2 with rotatingBlocks.render() to render the RotatingBlocks visual componenets. draw() Method if current is 2, rotatingBlocks visual component renders again.
…balls declared. Initialized instance of Balls passing this as a parameter to its' constructor. key pressed with balls.render() to render the Balls visual componenets. draw() Method if current is 2, balls visual component renders again.
…alls declared. Initialized instance of Balls passing this as a parameter to its' constructor. key pressed with balls.render() to render the Balls visual componenets. draw() Method if current is 2, balls visual component renders again.
…litude, increment position of each ball, store height of values of the balls.
…s class which accepts a MyVisual instance mv as input.
…rmining their properties. yvalues initialized to store vertical positions of the balls and spacing.
…contains mv.hint(mv.DISABLE_DEPTH_TEST) depth testing for subsequent drawing operations.. Calls calcBalls() method which does calculation. Calls the renderBalls() method which draws/render the balls on the screen based on the calculation. mv.hint(mv.ENABLE_DEPTH_TEST) enables depth testing again after rendering the balls.
…t and behavior of the ball, t retrieves audio data using mv.getAudioBuffer().get(i), mv.map(audioValue, 0, 1, 50, 200) maps the audio value to a desired amplitude range.
…o black, mv.strokeWeight(4) sets the weight of the stroke to 4 pixels, hue to control the colour variation.
…o ellipses setting their colours. Draws them on the canvas. Hue value incremented.
        mv.strokeWeight(4) added in the render() method
…al class. Contains fields which represents size (diameter) of the gradient circles. int height, width representing the dimensions of the canvas. float audioAmplitude storeing the current audio amplitude value.
… by associating it with a provided MyVisual object (mv), copies the canvas dimensions from mv, and calculating the size of gradient circles (dim).
…ude which contains setting background to black, line that retrieves the audio amplitude value,
… changing colour gradient based on the provided amplitude parameter. In it contains, a variable that calculates the radius of the circles based on the dim value.
ismyasmin and others added 30 commits May 6, 2024 04:00
….02; increments theta for oscillation effect, audioBuffer variable to get the audio buffer from the MyVisual instance.
…amplitude will be used to modulate the worm's amplitude dynmaically.
…its length by summing contributions from multiple sinusoidal components (mv.sin(...) for even j and mv.cos(...) for odd j).
            abv.render(); in the keyPressed for gradientShape
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.

1 participant