Skip to content

Instantly share code, notes, and snippets.

View yume-yu's full-sized avatar
🤔

まっつん yume-yu

🤔
View GitHub Profile
@yume-yu
yume-yu / Dアニメストア(Chrome).js
Last active May 6, 2019 05:56
safari/Chromeでwebページをアプリケーションっぽく立ち上げるJavascript(JXA)
function openApp(tab,width,height){
delay(1);
var scr = "window.open('https://anime.dmkt-sp.jp/animestore/tp_pc', 'DanimeStore', 'top= 0, left="+(height-820)+", width=820, height=484, toolbar=yes')";
tab.execute({javascript: scr});
}
var app = Application("System Events");
var displayWidth = 1050;
var displayHeight = 1680;
app.activate();
@yume-yu
yume-yu / animete_make_flame_speedfix.c
Last active September 9, 2019 11:57
アニメーションつきフレーム表示(速度補正
/**
* アニメーションつきフレーム表示
*/
void animete_make_flame_speedfix(int width,int height,int x,int y){
int current_x; //アニメーション中のフレームの現在の左上x座標
int current_y; //アニメーション中のフレームの現在の左上y座標
int current_width; //アニメーション中のフレームの現在の幅
int current_height; //アニメーション中のフレームの現在の高さ
int width_blank; //アニメーション中に幅が伸びる量
int height_blank; //アニメーション中に高さが伸びる量
@yume-yu
yume-yu / animete_make_flame.c
Created September 5, 2018 01:21
アニメーションつきフレーム表示
/**
* アニメーションつきフレーム表示
*/
void animete_make_flame(int width,int height,int x,int y){
int current_x; //アニメーション中のフレームの現在の左上x座標
int current_y; //アニメーション中のフレームの現在の左上y座標
int current_width; //アニメーション中のフレームの現在の幅
int current_height; //アニメーション中のフレームの現在の高さ
//開始時の座標に中心座標をセット