Skip to content

drjam2005/myCanvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myCanvas

Fun little drawing side-project

Warning

VERY INCOMPLETE!!!

Warning

Dependencies (for building):

  • CMake
  • C++ Compiler (ideally gcc)
  • MinGW compiler (Windows)

Raylib and SDL3 are vendored under vendor/; SDL3 does not need to be installed system-wide. By default, the app links prebuilt static archives from vendor/raylib/<platform>/lib and vendor/SDL/<platform>/lib, where <platform> is windows or unix.

To regenerate those archives on the current platform:

cmake -S . -B build-vendor -DMYCANVAS_BUILD_VENDOR_LIBS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build-vendor --target SDL3-static raylib

Building and Running

-- Unix Systems:

	$ mkdir build
	$ cd build/
	$ cmake ..
	$ make
  • Running:
	// running temporarily
	$ ./myCanvas

	// running with a file to load/save
	$ ./myCanvas -f fileName

	// running with window dimensoins (defaults: width = 800, height = 600)
	$ ./myCanvas -w 1920 -h 1080

	// running with window dimensoins and file to load/save
	$ ./myCanvas -w 1920 -h 1080 -f fileName

-- Windows Systems:

	$ cmake -S . -B build -G "MinGW Makefiles"
	$ cmake --build build
  • Running:
	// running temporarily
	$ myCanvas.exe

	// running with a file to load/save
	$ myCanvas.exe -f fileName

	// running with window dimensoins (defaults: width = 800, height = 600)
	$ myCanvas.exe -w 1920 -h 1080

	// running with window dimensoins and file to load/save
	$ myCanvas.exe -w 1920 -h 1080 -f fileName

BINDINGS

brushes

  • LeftMouseDown = Draw
  • Shift + LeftMouseDown + (Move Mouse Left/Right) = Resize Brush
  • E = Toggle Eraser/Brush
  • Ctrl+1 -> Ctrl+4 = Transparency from 25% -> 100%

layers

  • Ctrl+E = Create Layer
  • Ctrl+W = Move up a layer
  • Ctrl+S = Move down a layer
  • Ctrl+Shift+W = Shift a layer up
  • Ctrl+Shift+S = Shift a layer down
  • Ctrl+A/D = Cycle between Blending Modes

misc

  • Space + LeftMouseDown = Pan
  • Ctrl + Space + LeftMouseDown + (Move Mouse Up/Down) = Zoom In/Out
  • Ctrl+Z = Undo (max of 10 undos)
  • Ctrl+Shift+Z = Redo
  • Enter = Save

About

little drawing program of mine :3

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors