mirror of
https://github.com/bspeice/speice.io
synced 2025-07-29 03:25:03 -04:00
Color mixing is working
...even though I kinda hate the code for it
This commit is contained in:
@ -26,7 +26,7 @@ type InvertibleCanvasProps = {
|
||||
* @param hidden Hide the canvas element
|
||||
* @param image Image data to draw on the canvas
|
||||
*/
|
||||
const InvertibleCanvas: React.FC<InvertibleCanvasProps> = ({width, height, image}) => {
|
||||
export const InvertibleCanvas: React.FC<InvertibleCanvasProps> = ({width, height, image}) => {
|
||||
const [canvasCtx, setCanvasCtx] = useState<CanvasRenderingContext2D>(null);
|
||||
const canvasRef = useCallback(node => {
|
||||
if (node !== null) {
|
||||
|
@ -22,6 +22,10 @@
|
||||
margin: 0
|
||||
}
|
||||
|
||||
.inputElement > input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.inputReset {
|
||||
display: flex;
|
||||
float: right;
|
||||
|
Reference in New Issue
Block a user