mirror of
https://github.com/bspeice/speice.io
synced 2025-09-08 15:45:01 -04:00
Color mixing is working
...even though I kinda hate the code for it
This commit is contained in:
@ -18,32 +18,32 @@ export const CoefEditor = ({title, isPost, coefs, setCoefs, resetCoefs}: Props)
|
||||
<p className={styles.inputTitle} style={{gridColumn: '1/-1'}}>{title} {resetButton}</p>
|
||||
<div className={styles.inputElement}>
|
||||
<p>{isPost ? <TeX>\alpha</TeX> : 'a'}: {coefs.a}</p>
|
||||
<input type={'range'} min={0} max={2} step={0.01} style={{width: '100%'}} value={coefs.a}
|
||||
<input type={'range'} min={0} max={2} step={0.01} value={coefs.a}
|
||||
onInput={e => setCoefs({...coefs, a: Number(e.currentTarget.value)})}/>
|
||||
</div>
|
||||
<div className={styles.inputElement}>
|
||||
<p>{isPost ? <TeX>\beta</TeX> : 'b'}: {coefs.b}</p>
|
||||
<input type={'range'} min={0} max={2} step={0.01} style={{width: '100%'}} value={coefs.b}
|
||||
<input type={'range'} min={0} max={2} step={0.01} value={coefs.b}
|
||||
onInput={e => setCoefs({...coefs, b: Number(e.currentTarget.value)})}/>
|
||||
</div>
|
||||
<div className={styles.inputElement}>
|
||||
<p>{isPost ? <TeX>\gamma</TeX> : 'c'}: {coefs.c}</p>
|
||||
<input type={'range'} min={0} max={2} step={0.01} style={{width: '100%'}} value={coefs.c}
|
||||
<input type={'range'} min={0} max={2} step={0.01} value={coefs.c}
|
||||
onInput={e => setCoefs({...coefs, c: Number(e.currentTarget.value)})}/>
|
||||
</div>
|
||||
<div className={styles.inputElement}>
|
||||
<p>{isPost ? <TeX>\delta</TeX> : 'd'}: {coefs.d}</p>
|
||||
<input type={'range'} min={0} max={2} step={0.01} style={{width: '100%'}} value={coefs.d}
|
||||
<input type={'range'} min={0} max={2} step={0.01} value={coefs.d}
|
||||
onInput={e => setCoefs({...coefs, d: Number(e.currentTarget.value)})}/>
|
||||
</div>
|
||||
<div className={styles.inputElement}>
|
||||
<p>{isPost ? <TeX>\epsilon</TeX> : 'e'}: {coefs.e}</p>
|
||||
<input type={'range'} min={0} max={2} step={0.01} style={{width: '100%'}} value={coefs.e}
|
||||
<input type={'range'} min={0} max={2} step={0.01} value={coefs.e}
|
||||
onInput={e => setCoefs({...coefs, e: Number(e.currentTarget.value)})}/>
|
||||
</div>
|
||||
<div className={styles.inputElement}>
|
||||
<p>{isPost ? <TeX>\zeta</TeX> : 'f'}: {coefs.f}</p>
|
||||
<input type={'range'} min={0} max={2} step={0.01} style={{width: '100%'}} value={coefs.f}
|
||||
<input type={'range'} min={0} max={2} step={0.01} value={coefs.f}
|
||||
onInput={e => setCoefs({...coefs, f: Number(e.currentTarget.value)})}/>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user