Skip to content

Storing and accessing art from Genshin Impact and Honkai: Star Rail

Notifications You must be signed in to change notification settings

ScobbleQ/HoYo-Assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HoYo-Art

A repository for storing and accessing art from HoYoverse games, Genshin Impact and Honkai: Star Rail, with the use of raw.githubusercontent. This is free for anyone to use and all art belongs to HoYoverse. Use Enka.Network API to obtain character IDs.

Version

Genshin Impact - v4.7
Honkai: Star Rail - v2.3

Example

Genshin Impact using JavaScript:

const { loadImage } = require('@napi-rs/canvas');

let id = "10000051";
const image = await loadImage(`https://raw.githubusercontent.com/ScobbleQ/HoYo-Assets/main/genshin/splash/${id}.png`);

Honkai: Star Rail using Python:

from PIL import Image
import requests

id = '1307'
response = requests.get(f'https://raw.githubusercontent.com/ScobbleQ/HoYo-Assets/main/starrail/wish/{id}.png')
image = Image.open(BytesIO(response.content))

Libraries

python -m pip install requests
python -m pip install pillow
python -m pip install tqdm

Releases

No releases published

Packages

No packages published

Languages