forked from TrezarCoin/TrezarCoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A hard fork at block #610000 with many protocol changes.
- Loading branch information
1 parent
28bb179
commit de0fe1f
Showing
68 changed files
with
665 additions
and
419 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#!/usr/bin/env python | ||
# W.J. van der Laan, 2011 | ||
# Make spinning .mng animation from a .png | ||
# Make spinning animation from a .png | ||
# Requires imagemagick 6.7+ | ||
from __future__ import division | ||
from os import path | ||
from PIL import Image | ||
from subprocess import Popen | ||
|
||
SRC='img/reload_scaled.png' | ||
DST='../../src/qt/res/movies/update_spinner.mng' | ||
TMPDIR='/tmp' | ||
TMPNAME='tmp-%03i.png' | ||
NUMFRAMES=35 | ||
FRAMERATE=10.0 | ||
CONVERT='convert' | ||
# The source icon is copyright (c) 2014 John Doering <[email protected]> | ||
# under the terms of the MIT Licence (see ../LICENCE) | ||
SRC='images/reload.png' | ||
TMPDIR='../src/qt/res/movies/' | ||
TMPNAME='spinner-%02i.png' | ||
NUMFRAMES=25 | ||
CLOCKWISE=True | ||
FLIP=False | ||
DSIZE=(16,16) | ||
|
||
im_src = Image.open(SRC) | ||
|
||
if CLOCKWISE: | ||
if FLIP: | ||
im_src = im_src.transpose(Image.FLIP_LEFT_RIGHT) | ||
|
||
def frame_to_filename(frame): | ||
|
@@ -35,9 +35,3 @@ def frame_to_filename(frame): | |
outfile = frame_to_filename(frame) | ||
im_new.save(outfile, 'png') | ||
frame_files.append(outfile) | ||
|
||
p = Popen([CONVERT, "-delay", str(FRAMERATE), "-dispose", "2"] + frame_files + [DST]) | ||
p.communicate() | ||
|
||
|
||
|
Binary file not shown.
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
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
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
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
Oops, something went wrong.