/*////////////////////////////////////////////////////////
Name: 	ASTColour

Author: 	Sarah Han-de-Beaux

*////////////////////////////////////////////////////////

/* Generated By:JJTree: Do not edit this line. ASTColour.java */

public class ASTColour extends SimpleNode {
  public ASTColour(int id) {
    super(id);
  }

  public ASTColour(drawphase3 p, int id) {
    super(p, id);
  }
	
  public void generate(String Colour, int brush, int x, int y)
	{
		ASTStr colourNode = ((ASTStr)jjtGetChild(0));
		String tempColour = colourNode.val;
		Colour="";
		for(int i =1;i<tempColour.length()-1;i++)
  		   Colour+=tempColour.substring(i,i+1);
		
		SimpleNode sNode = ((SimpleNode)jjtGetChild(1));
		sNode.generate(Colour,brush,x,y);
	}


}
