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

chore: initial structure of ipython

parent 5619cdac
No related branches found
No related tags found
1 merge request!37Improved support for PyBoy interface
Pipeline #3660 passed
%% Cell type:code id:6527990d-da11-4660-a9c2-56bb4a57de37 tags:
``` python
from boytacean import GameBoy
ROM_PATH = "../../res/roms/demo/pocket.gb"
gb = GameBoy(apu_enabled=False, serial_enabled=False)
gb.load_rom(ROM_PATH)
for _ in range(220):
gb.next_frame()
gb.image()
```
%% Cell type:code id:bea9dcad-f3a5-479f-8116-4d6031ddfac9 tags:
``` python
gb.set_palette("hogwards")
for _ in range(400):
gb.next_frame()
gb.image()
```
%% Cell type:code id:eb697a68-77d4-443d-96da-0e81f9b39d2a tags:
``` python
gb.set_palette("christmas")
for _ in range(400):
gb.next_frame()
gb.image()
```
%% Cell type:code id:1f75c0f0-7350-4870-8385-b1815d672e75 tags:
``` python
with gb.video_capture(video_format="avc1", video_extension="mp4",fps=60, video=False):
for _ in range(400):
gb.next_frame()
video = gb.video()
video
```
%% Cell type:code id:f99fffef-9e9b-412a-99ff-fe5b59d1026e tags:
``` python
```
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