Skip to content
Snippets Groups Projects
Commit c8756a87 authored by Maximilian Berger's avatar Maximilian Berger
Browse files

4h0l3

parents
No related branches found
No related tags found
No related merge requests found
.DS_Store 0 → 100644
File added
{
"git-blame.gitWebUrl": ""
}
\ No newline at end of file
4h0l3.jpg 0 → 100644
4h0l3.jpg

30.9 KiB

import bl00mbox
import random
import time
import math
import leds
from st3m import InputState, Responder
from st3m.application import Application, ApplicationContext
from st3m.goose import Optional
from st3m.utils import xy_from_polar, tau
from st3m.ui.view import ViewManager
from st3m.ui.interactions import CapScrollController
from ctx import Context
class App(Application):
def __init__(self, app_ctx: ApplicationContext) -> None:
super().__init__(app_ctx)
self.apath = app_ctx.bundle_path + "/4h0l3.jpg"
def draw(self, ctx: Context) -> None:
ctx.save()
ctx.rgb(0, 0, 0).rectangle(-144, -144, 288, 288).fill()
ctx.image(self.apath, -121, -121, 240, 240)
ctx.restore()
if __name__ == "__main__":
from st3m.run import run_view
run_view(App(ApplicationContext()))
[app]
name = "4h0l3"
menu = "Badge"
[entry]
class = "App"
[metadata]
author = "git-commit"
license = "WTFPL"
description = "A wholesome app"
version = 1337
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment