Question: Can someone translate this code from JAVA to PROCESSING ? StickFigure.java /* * To change this license header, choose License Headers in Project Properties. *

Can someone translate this code from JAVA to PROCESSING?

StickFigure.java

/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package stickman;

/** * * @author Akshay Bisht */ import java.awt.*;

import java.applet.Applet; import java.awt.*;

public class StickFigure extends Applet { public void paint (Graphics gp) { setBackground(Color.black); setForeground(Color.red); gp.drawRect(5,5,190,190); gp.drawOval(90,60,20,20); gp.drawLine(100,80,100,120); gp.drawLine(100,100,80,100); gp.drawLine(100,100,120,75); gp.drawLine(100,120,85,135); gp.drawLine(100,120,115,135); gp.drawString("Stick Figure", 20, 180); } }

stick.html

Stick Figures

Hello World Applet

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!