Giter VIP home page Giter VIP logo

01-ghd3's Introduction

Assignment 1 - Hello World: GitHub and d3

For this assignment I have created a picture of a swimmer underwater and animated some bubbles in the picture. To see the bubbles float to the top more than once, you must refresh the page. I found example code to help guide my project.

To create the animation of the bubbles, I found transition examples from this website: https://www.d3-graph-gallery.com/graph/interactivity_transition.html#portfolio. In order to distinguish which circles to animate I used the class atribute which I learned about from stackoverflow: https://stackoverflow.com/questions/11926238/selecting-a-subset-of-circles-using-d3. To practice with databinding I worked with professor's code example from the first day of class and this website: https://www.tutorialsteacher.com/d3js/data-binding-in-d3js. I used this website to make an ellipse: https://www.tutorialsteacher.com/d3js/create-svg-elements-in-d3js. I used this website to make the star shaped polygon found on the turtle's back: https://www.w3schools.com/graphics/svg_polygon.asp.

This is the link to see the project: https://vygrasso.github.io/01-ghd3/index. I attached two screenshots of the project as separate attachments.

Technical Achievements:

I used data binding, transitions, as well as learned about the class attribute to complete my project. Data binding was used to create multiple circles and polygons for the yellow fish. In order to create bubbles and animate them, I had to distinguish these circles from any other circle on the screen. I learned I could do this from the class attribute which I could then select when calling upon transitions. I used transitions to animate these blue circles and had them move to the top of the screen to simulate them floating to the surface of water.

Design Achievements:

In order to create a visually appealing scene, I used basic math and geometry to make coordinates line up correctly between shapes. For example, I centered the star polygon on the center of the turtle's back. I also reflected one triangle (used to make a flipper) over the line that made the swimmer's body to make the two triangles the same shape and size. I also used lots of HTML colors from this website: https://www.w3schools.com/colors/colors_names.asp to make a more appealing image.

01-ghd3's People

Contributors

vygrasso avatar codementum avatar ajwurts avatar curiouslemur avatar

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.