Showing posts with label Easy. Show all posts
Showing posts with label Easy. Show all posts

Tuesday, July 17, 2012

Sketch Tutorial: Toilet Stick Figure

Don't Copy From This Blog...

Protected by Copyscape Plagiarism Detection
Finished Vector!



This tutorial will show you how to use Sketch(Illustrator too) to make a simple stick figure man/woman.





First, open Sketch.


Now, make a simple circle and name it 'Face'. Also, make note of the Width and Height of all the assets throughout the tutorial, as I will be using a set proportion so that the figure looks just about right.



Draw a rounded rectangle, as 'Torso'. Once again, use the same width and height values.


Now draw the legs.


Make sure you round it off to about 23 px. The legs do look very small, and I will rectify this error later. To avoid facing this problem, adjust leg height value to 240.


For the right leg, simply duplicate the leg you drew first, and drag it into position.




Draw the arm. Make note of the width, height and roundedness.


Once again, duplicate the arm, and drag it into position.




Now, this step is an important one. This will crucially define how the stick figure will look like. The bit that connects the arm to the torso. Draw a circle, press 'Return/Enter' and use your mouse to mould the circle into a shape that will uniformly connect the arm to the torso. If you cannot manage to do it properly, use the one I have made. Download the file at the end of the tutorial.



Once you've drawn it for one arm, duplicate it, and flip it horizontally and use it for the other arm-torso connection.


Now select both the connector and the respective arm, and Combine them using 'Union'. Do it for both the arm-connectors.


Now Combine 'Union' the arm/connectors to the torso.



Now drag the legs into place, and once again Combine 'Union' them into the torso.



Now the leg height correction. Select both the legs, and adjust the height value to 240. You can also adjust the leg height value to 240 when you first draw the legs.


Now the finished result should look something like this,


To finish it off, on the right-hand column, deselect 'Border' and change 'Fill' to black, or whatever colour takes your fancy.


Ta-da!

Download link for the Stick Figure.

Tuesday, April 3, 2012

processing sketch : transparent circles

Don't Copy From This Blog...

Protected by Copyscape Plagiarism Detection




I made this using processing. Ok, this isn't really processing per se, but it is processing.js. Both use the same coding just that processing.js is a lighter and more efficient way to display your processing sketches on a web page. In this simple sketch circles of varying opacity are drawn on the screen and the position of the circles are determined by the position of your mouse. The colour and the opacity are random. To clear the screen and to start again, press the key 'C'.

The code is given below. I have explained some lines of code so you understand what I have created.

void setup() //method to initialize the sketch. Only runs 1 time.
{
  size(600, 600); //determines size of sketch
  background(255); //background colour
  smooth(); //smoothens everything out
}
void draw() //method to draw on sketch. Runs every time till program is stopped.
{
  noStroke(); //circles don't have an outline
  float x = random(20, 60); // random size with limits from 20 to 60
  ellipse(mouseX, mouseY, x, x); // circles with position determined by mouse
  fill(random(200), random(200), random(255), random(100)); // random colour and opacity
  if (keyPressed) //detects if a key is pressed
  {
    if (key=='c'||key=='C') //now looks for key 'c'
    {
      background(255); //clears screen
    }
  }
}


Monday, April 2, 2012

Processing

Don't Copy From This Blog...

Protected by Copyscape Plagiarism Detection
Have you ever fantasized about being a computer programmer and create stuff simply by typing a few commands? Yet, like me, you hate the complexity and the learning curve of the Java, C++ and the rest? Fear not, for processing is here!



Processing is Java based compiler which requires basic Java coding know-how to create insanely cool graphics within minutes of downloading the compiler. It's extremely simple to learn processing, and with a few months of solid practice you can create anything you want with a few lines of code. Sounds too good to be true right? However, apart from a few minor problems with some geeky stuff which won't bother you anyway, it is fantastic. You can do 3D modeling on it as well!

So download processing and code away!


Here are a few examples,




Tree using recursion


 
//PART 2