Color mixing is working

...even though I kinda hate the code for it
This commit is contained in:
2024-12-04 22:38:53 -05:00
parent a79341271b
commit 30e1619175
5 changed files with 151 additions and 62 deletions

View File

@ -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) {

View File

@ -22,6 +22,10 @@
margin: 0
}
.inputElement > input {
width: 100%;
}
.inputReset {
display: flex;
float: right;