This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// like star screensaver (ssstar.scr) by OpenGL | |
// | |
// by mieki256 | |
// License : CC0 / Public Domain | |
// Last updated: <2024/01/10 05:31:11 +0900> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <mmsystem.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*- | |
# Last updated: <2024/01/08 11:02:26 +0900> | |
""" | |
Drawing process like a star screensaver by PyOpenGL | |
Windows10 x64 22H2 + Python 3.10.10 64bit + PyOpenGL 3.1.6 | |
""" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Last updated: <2022/09/18 11:40:29 +0900> */ | |
/* | |
OpenGL Bound Ball by mieki256 | |
ESC, q, key : Exit | |
f key : Display FPS ON/OFF | |
Use Windows10 x64 21H2 + MinGW(gcc 9.2.0) + freeglut 3.0.0 (freeglut-MinGW-3.0.0-1.mp.zip) | |
Build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*- | |
# Last updated: <2022/09/18 21:40:32 +0900> | |
""" | |
GL bound ball by mieki256. | |
License: CC0 / Public Domain. | |
ESC, q : Exit | |
f : Display FPS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; 全レイヤーに対し、以下のどちらかを行う Script-fu スクリプト | |
;; ・レイヤー名を連番でリネーム | |
;; ・連番テキストを描画 | |
;; | |
;; * レイヤーメニューに追加される | |
;; * 連番文字列を描画する際に使用するフォント種類は、 | |
;; 事前にフォントタブ内などで選択しておく。 | |
;; また、現在の前景色で描画される。 | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# -*- mode: python; Encoding: utf8n -*- | |
u""" | |
全レイヤーの、左上座標、幅、高さ、をテキスト出力保存する. | |
by mieki256 | |
0.0.1 2012.08.06 GIMP2.8、GIMP2.6用に作成。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# -*- mode: python;Encoding: utf8n -*- | |
""" | |
Pygletサンプル | |
BG表示、スプライト表示、oggのループ再生を行う | |
- 座標は、左下が(0,0)になってることに注意 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
u""" | |
PyGame + OpenGLのテストサンプル | |
- Pキー : 平行投影/透視投影の切り替え | |
- Wキー : ワイヤーフレーム/ソリッド表示の切り替え | |
- Lキー : 照明のon/off | |
- Tキー : テクスチャ設定の切り替え(3種類) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*- | |
# Last updated: <2022/07/13 01:32:08 +0900> | |
""" | |
Yliluoma's ordered dithering algorithm 1, 2, 3 and adobe like | |
Arbitrary-palette positional dithering algorithm | |
https://bisqwit.iki.fi/story/howto/dither/jy/ | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*- | |
# Last updated: <2021/07/08 04:18:55 +0900> | |
""" | |
Convert GIMP palette (.gpl) to Photoshop color swatch (.aco). | |
usage: python gpl2aco.py GPL_FILE ACO_FILE | |
Windows10 x64 20H2 + Python 3.9.5 64bit | |
""" |
NewerOlder