Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package s06;
- import acm.graphics.GLabel;
- import acm.graphics.GLine;
- import acm.graphics.GOval;
- import acm.graphics.GRect;
- import acm.program.GraphicsProgram;
- import stanford.karel.*;
- /*
- * დახატეთ რობოტის სახე ფანჯრის ცენტრში.
- */
- public class Ex14 extends GraphicsProgram {
- /* Face Parameters */
- private int FACE_HEIGHT = 400;
- private int FACE_WIDTH = 450;
- /* Mouth Parameters */
- private int MOUTH_HEIGHT = 50;
- private int MOUTH_WIDTH = 250;
- private int MOUTH_OFFSET_FROM_BOTTOM = 30;
- private int MOUTH_TEETH_COUNT = 10;
- /* Nose Parameters */
- private int NOSE_HEIGHT = 150;
- private int NOSE_WIDTH = 125;
- private int NOSE_OFFSET_FROM_BOTTOM = 125;
- /* Ear Parameters */
- private int EAR_HEIGHT = 150;
- private int EAR_WIDTH = 50;
- /* Anteana Parameters */
- private int ANTENA_HEIGHT = 100;
- private int ANTENA_CIRCLE_R = 25;
- /* Eye Parameters */
- private int EYE_HEIGHT = 120;
- private int EYE_WIDTH = 120;
- private int EYE_OFFSET_FROM_CENTER = 70;
- private int EYE_OFFSET_FROM_TOP = 50;
- /* Canvas Parameters */
- private int HEIGHT = 800;
- private int WIDTH = 1000;
- @Override
- public void run() {
- // Set Canvas Size
- this.setSize(WIDTH, HEIGHT);
- drawRobot();
- }
- private void drawRobot() {
- drawFaceOutline();
- drawMouth();
- drawEyes();
- drawEars();
- drawNose();
- drawAntena();
- }
- private void drawFaceOutline() {
- }
- private void drawEyes() {
- }
- private void drawMouth() {
- }
- private void drawNose() {
- }
- private void drawAntena() {
- }
- private void drawEars() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement