Пример #1
0
 public Renderer(AccumulatorBuffer buf, Palette pal)
 {
     buffer = buf;
     sigma = 0.475f;
     gamma = .15f;
     zeta = 1.0f;
     palette = pal;
 }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();
            palette = new Palette();
            createEnv(1024, 768);
            bv = new BitmapView();
            bv.Show();
            bv.setBitmap(bmp, true);
            GammaSpinner.Value = (decimal)(renderer.Gamma = .15f);
            ZetaSpinner.Value = (decimal)(renderer.Zeta = 1.0f);
            SigmaSpinner.Value =(decimal)(renderer.Sigma = 0.475f);
            IterIntvlSpinner.Value = (decimal)timer1.Interval;
            timer1.Enabled=true;
            lastAutoRenderTime = DateTime.Now;
            renderLock = new Object();
            renderThread = (new Thread(new ThreadStart(RunRender)));
            renderThread.Start();
            startTime = DateTime.Now;

            pe = new PaletteEditor();
            pe.Hide();
            //new ColourLoversBrowser(null).Show();
        }