From 33ba38d2db6bd82b4dfdde727a86f4d630ef2f08 Mon Sep 17 00:00:00 2001 From: EmanuelNorsk <58894136+EmanuelNorsk@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:05:48 +0100 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 01e3568..7e6fc3e 100644 --- a/README.md +++ b/README.md @@ -21,35 +21,35 @@ Functions added to the current version: ### Creates a screen to draw on with the width and height of your choice. Current flags that work are: sdlg.RESIZABLE sdlg.display.set_mode(Tuple(width, height), flags) -> Display -# Fills the window with a color. Color values are between 0 - 255 +### Fills the window with a color. Color values are between 0 - 255 Display.fill((red, green, blue, alpha)) -# Both does the same thing, updates the Display +### Both does the same thing, updates the Display Display.flip() Display.update() -# Makes (0, 0) be in the center of the screen and centers each elements drawn to the screen. +### Makes (0, 0) be in the center of the screen and centers each elements drawn to the screen. Display.cartesian_coordinate_system(Bool) -# Adds the feature to scale the window to match the new resolution to keep everything looking the same and changing at the right pace +### Adds the feature to scale the window to match the new resolution to keep everything looking the same and changing at the right pace Display.scaleWindow(Bool) -# Sets the inner size to what you want. This impacts how things scale and if you want things to scale based on a window size not running at the moment of launching Display.scaleWindow(True) +### Sets the inner size to what you want. This impacts how things scale and if you want things to scale based on a window size not running at the moment of launching Display.scaleWindow(True) Display.setInnerSize(Tuple(width, height)) -# Draws a rectangle to the screen with the properties given. Border might not work just yet, and it does not support scaling yet. +### Draws a rectangle to the screen with the properties given. Border might not work just yet, and it does not support scaling yet. sdlg.draw.rect(Display, (red, green, blue, alpha), (x, y, width, height), borderWidth = 0) -# Generates a list of events. Use this in a for loop and ask for the current event's type. So [event.type for event in sdlg.event.get()] to get a list of events. +### Generates a list of events. Use this in a for loop and ask for the current event's type. So [event.type for event in sdlg.event.get()] to get a list of events. sdlg.event.get() -# Gives a list with the keyboard state +### Gives a list with the keyboard state sdlg.key.get_pressed() -# Starts up the library +### Starts up the library sdlg.init() -# Closes the library +### Closes the library sdlg.quit() Every constant are exactly the same as pygame.