Skip to content

tiet-ucs505/0x07-2d-primitives

Repository files navigation

0x07 : 2D Primitives

Assignment

  1. Choose a shape to draw, and save its reference image as ./assets/<roll-no>-0x07-2d-primitives-refimg.png. Remember to replace <roll-no>. It should reflect in the index.html upon clicking "Show image." Also upload it to the form along with your submission. Here's a reference on how to choose a shape, for anyone interested.
  2. Draw the shape. Use canvas draw functions to create the shape so as to redefine and complete the function Experiment.createGeometry.
  3. Transform. Refactor the function Experiment.getBaseTransform to generate a suitable initial state for the shape. Also see the suggestions for its implementation, useful API and its math.
  4. Stylise. Refactor the function Experiment.getBaseStyles to generate a soothing style. Here's a quick reference on rendering and stylisation using HTML Canvas.
  5. UI. Refactor the function Experiment.handleTransforms to handle the inputs from UI.
  6. Collage. Snapshot a few of your canvases using Download button; and compile a collage using the same. Rename the collage as follows and upload it to the form along with your submission.
    <roll-no>-0x07-2d-primitives-collage.png

Submit

  1. Git URL
  2. Commit ID
  3. Reference Image (of the shape chosen in Step 1)
  4. Teaser (from Collage in Step 6)

Candidate's Remarks

[Statements within braces [] are comments, placeholders and directive. Please remove them and /or replace them with your response.]

[Q: Apart from the given objective, what did you try to/ were able to achieve through this assignment.]

[Q: How difficult/ easy did you find doing this? Reference it with the fact that you are supposed to spend 3-4 hours on this problem. 1 hr in the Lab and rest later.]

[Q: Do you think this exercise may help you solve a real world problem that you may encounter? Please quote an example if so.]

Acknowledgements

[Are there any external resources, friends, colleagues, mentors who have helped you do it. Please acnowledge them.]

Objective

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published