public Renderer(AccumulatorBuffer buf, Palette pal) { buffer = buf; sigma = 0.475f; gamma = .15f; zeta = 1.0f; palette = pal; }
public void createEnv(int width, int height) { buffer = new AccumulatorBuffer((uint)width, (uint)height); bmp = new Bitmap(width, height, PixelFormat.Format32bppArgb); renderer = new Renderer(buffer, palette); pc = new ParticleChamber(buffer); widthSpinner.Value = (decimal)width; heightSpinner.Value = (decimal)height; }
public ParticleChamber(AccumulatorBuffer buf) { buffer = buf; points = new List<SimPoint>(); gPoints = null; sPoints = null; particles = new LinkedList<Particle>(); deletionMarks = new List<Particle>(); ResetChamber(5, false, 0); }