예제 #1
0
        public ShapeChromosome(ShapeType shapeType)
        {
            _shapeType = shapeType;

            PositionsShape = new List <PositionDNA>();
            ColourShape    = new ColourDNA();
        }
예제 #2
0
        public void InitializeDNA()
        {
            PositionsShape = new List <PositionDNA>();

            CreateVerticlePositions();

            ColourShape = new ColourDNA();
            ColourShape.InitializeDNA();
        }
예제 #3
0
 private static Brush GetSolidColour(ColourDNA colour)
 {
     return(new SolidBrush(Color.FromArgb(colour.AlphaColour, colour.RedColour, colour.GreenColour, colour.BlueColour)));
 }