public ShapeChromosome(ShapeType shapeType) { _shapeType = shapeType; PositionsShape = new List <PositionDNA>(); ColourShape = new ColourDNA(); }
public void InitializeDNA() { PositionsShape = new List <PositionDNA>(); CreateVerticlePositions(); ColourShape = new ColourDNA(); ColourShape.InitializeDNA(); }
private static Brush GetSolidColour(ColourDNA colour) { return(new SolidBrush(Color.FromArgb(colour.AlphaColour, colour.RedColour, colour.GreenColour, colour.BlueColour))); }