Skip to content
Snippets Groups Projects
Verified Commit 487d59a6 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: format black

parent 15e4d622
No related branches found
No related tags found
No related merge requests found
Pipeline #4350 passed
%% Cell type:code id:6527990d-da11-4660-a9c2-56bb4a57de37 tags: %% Cell type:code id:6527990d-da11-4660-a9c2-56bb4a57de37 tags:
``` python ``` python
from boytacean import GameBoy from boytacean import GameBoy
ROM_PATH = "../../res/roms/demo/pocket.gb" ROM_PATH = "../../res/roms/demo/pocket.gb"
gb = GameBoy(apu_enabled=False, serial_enabled=False) gb = GameBoy(apu_enabled=False, serial_enabled=False)
gb.load_rom(ROM_PATH) gb.load_rom(ROM_PATH)
for _ in range(220): for _ in range(220):
gb.next_frame() gb.next_frame()
gb.image() gb.image()
``` ```
%% Cell type:code id:bea9dcad-f3a5-479f-8116-4d6031ddfac9 tags: %% Cell type:code id:bea9dcad-f3a5-479f-8116-4d6031ddfac9 tags:
``` python ``` python
gb.set_palette("hogwards") gb.set_palette("hogwards")
for _ in range(400): for _ in range(400):
gb.next_frame() gb.next_frame()
gb.image() gb.image()
``` ```
%% Cell type:code id:eb697a68-77d4-443d-96da-0e81f9b39d2a tags: %% Cell type:code id:eb697a68-77d4-443d-96da-0e81f9b39d2a tags:
``` python ``` python
gb.set_palette("christmas") gb.set_palette("christmas")
for _ in range(400): for _ in range(400):
gb.next_frame() gb.next_frame()
gb.image() gb.image()
``` ```
%% Cell type:code id:1f75c0f0-7350-4870-8385-b1815d672e75 tags: %% Cell type:code id:1f75c0f0-7350-4870-8385-b1815d672e75 tags:
``` python ``` python
with gb.video_capture(video_format="avc1", video_extension="mp4", fps=60): with gb.video_capture(video_format="avc1", video_extension="mp4", fps=60):
for _ in range(400): for _ in range(400):
gb.next_frame() gb.next_frame()
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment