Coder Social home page Coder Social logo

eyeball's Introduction

Eyeball

Code an Eye in Processing

GOALS For This Assignment

  1. Practicing using Processing
  2. Practice using the ”ellipse” command in Processing
  3. Understand draw order and command ordering
  4. Understand the Processing 2D coordinate systems
  5. Make a picture of a Eyeball!

REQUIREMENTS

You must create an image using Processing of an Eyeball.

Your ‘sketch’ of the eyeball must:

• be created using at least 5 ellipses • be of size 400 by 400 pixels • be in color

For example:

RESOURCES

Some of this information will help you on your lab.

Use only the following commands - where you need to figure out what numbers to plug in to get the desired behaviour:

  1. ellipse(?, ?, ? , ?) ( x, y coordinates, width, height )
  2. size(?, ?)

Note that when drawing a shape you can control some of its properties.

Commands that are useful are:

• stroke(r, g, b); ( 0-255, 0-255, 0-255 ) • fill(r, g, b); • noStroke();

OPTIONAL Challenge

Code a set of Crossed-Eye eyeballs, experiment with color and size.

NAMING Convention

“YOURFIRSTNAME(allcaps).Eyeball.Drawing” “ . “ periods in between words

SAVE an image of your Eyeball

Cut and Paste this function into the LAST line of your code to save an image ( .png file format ) to your sketch folder.

//save function save(“YOURFIRSTNAME(allcaps).Eyeball.Drawing.png");

TURN IN in Classroom

eyeball's People

Contributors

padilla-brainint 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.