Christian Heimke commited on 2011-07-15 09:16:28
Showing 11 changed files, with 39 additions and 19 deletions.
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -26,6 +26,7 @@ public class Blimp extends JApplet |
| 26 | 26 |
//configuration constants |
| 27 | 27 |
static final int constColorCntX = 2, constColorCntY = 4; |
| 28 | 28 |
static final int constColorCnt = constColorCntX * constColorCntY; |
| 29 |
+ static final int defHeight = 8, defWidth = 8, defChannels = 1, defMaxval = 127, defDuration = 100; |
|
| 29 | 30 |
|
| 30 | 31 |
//configuration variables |
| 31 | 32 |
boolean isFullApp = false; //if running as full application |
| ... | ... |
@@ -141,8 +142,9 @@ public class Blimp extends JApplet |
| 141 | 142 |
frame.setTitle( "Blimp" ); |
| 142 | 143 |
labelStatus.setText( "new movie..." ); |
| 143 | 144 |
curFile = null; |
| 144 |
- curMovie = new BlinkenMovie( 0, 0, 0, 0 ); |
|
| 145 |
- curMovie.insertInfo( 0, "creator", "Blimp (version 0.4 date 2004-11-15)" ); |
|
| 145 |
+ curMovie = new BlinkenMovie( defHeight, defWidth, defChannels, defMaxval ); |
|
| 146 |
+ curMovie.insertInfo( 0, "creator", "Blimp (version 0.5 date 2004-11-19)" ); |
|
| 147 |
+ curMovie.insertFrame( 0, new BlinkenFrame( defHeight, defWidth, defChannels, defMaxval, defDuration ) ); |
|
| 146 | 148 |
curMovieChanged = false; |
| 147 | 149 |
|
| 148 | 150 |
//update controls |
| ... | ... |
@@ -468,7 +470,7 @@ public class Blimp extends JApplet |
| 468 | 470 |
|
| 469 | 471 |
//create new empty frame |
| 470 | 472 |
frame = new BlinkenFrame( curMovie.getHeight( ), curMovie.getWidth( ), |
| 471 |
- curMovie.getChannels( ), curMovie.getMaxval( ), 100 ); |
|
| 473 |
+ curMovie.getChannels( ), curMovie.getMaxval( ), defDuration ); |
|
| 472 | 474 |
frame.clear( ); |
| 473 | 475 |
|
| 474 | 476 |
//insert frame behind current position |
| ... | ... |
@@ -611,7 +613,7 @@ public class Blimp extends JApplet |
| 611 | 613 |
{
|
| 612 | 614 |
JOptionPane.showMessageDialog( dialogParent, |
| 613 | 615 |
"BlinkenLightsInteractiveMovieProgram\n" + |
| 614 |
- "version 0.4 date 2004-11-15\n" + |
|
| 616 |
+ "version 0.5 date 2004-11-19\n" + |
|
| 615 | 617 |
"Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info>\n" + |
| 616 | 618 |
"Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n" + |
| 617 | 619 |
"a blinkenarea.org project\n" + |
| ... | ... |
@@ -1244,8 +1246,9 @@ public class Blimp extends JApplet |
| 1244 | 1246 |
|
| 1245 | 1247 |
//initialize current movie, frame |
| 1246 | 1248 |
curDir = new File( "." ); |
| 1247 |
- curMovie = new BlinkenMovie( 0, 0, 0, 0 ); |
|
| 1248 |
- curMovie.insertInfo( 0, "creator", "Blimp (version 0.4 date 2004-11-15)" ); |
|
| 1249 |
+ curMovie = new BlinkenMovie( defHeight, defWidth, defChannels, defMaxval ); |
|
| 1250 |
+ curMovie.insertInfo( 0, "creator", "Blimp (version 0.5 date 2004-11-19)" ); |
|
| 1251 |
+ curMovie.insertFrame( 0, new BlinkenFrame( defHeight, defWidth, defChannels, defMaxval, defDuration ) ); |
|
| 1249 | 1252 |
curFrame = null; |
| 1250 | 1253 |
|
| 1251 | 1254 |
//runnning as full application |
| ... | ... |
@@ -1706,7 +1709,7 @@ public class Blimp extends JApplet |
| 1706 | 1709 |
|
| 1707 | 1710 |
//running as command line tool |
| 1708 | 1711 |
System.out.println( "BlinkenLightsInteractiveMovieProgram\n" + |
| 1709 |
- "version 0.4 date 2004-11-15\n" + |
|
| 1712 |
+ "version 0.5 date 2004-11-19\n" + |
|
| 1710 | 1713 |
"Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info>\n" + |
| 1711 | 1714 |
"Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n" + |
| 1712 | 1715 |
"a blinkenarea.org project\n" + |
| ... | ... |
@@ -1717,7 +1720,9 @@ public class Blimp extends JApplet |
| 1717 | 1720 |
dimPattern = Pattern.compile( "^([0-9]+)x([0-9]+)$" ); |
| 1718 | 1721 |
|
| 1719 | 1722 |
//get initial movie |
| 1720 |
- movie = new BlinkenMovie( 0, 0, 0, 0 ); |
|
| 1723 |
+ movie = new BlinkenMovie( defHeight, defWidth, defChannels, defMaxval ); |
|
| 1724 |
+ movie.insertInfo( 0, "creator", "Blimp (version 0.5 date 2004-11-19)" ); |
|
| 1725 |
+ movie.insertFrame( 0, new BlinkenFrame( defHeight, defWidth, defChannels, defMaxval, defDuration ) ); |
|
| 1721 | 1726 |
|
| 1722 | 1727 |
//process parameters |
| 1723 | 1728 |
for( i = 0; i < args.length; i++ ) |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -155,7 +155,7 @@ public class BlinkenFrame |
| 155 | 155 |
) / 255); |
| 156 | 156 |
for( c = 3; c < channels; c++ ) |
| 157 | 157 |
data[y][x][c] = (byte)(( 0 |
| 158 |
- + ((int)data[y][x][2] & 0xFF) * alpha_ |
|
| 158 |
+ + ((int)data[y][x][c] & 0xFF) * alpha_ |
|
| 159 | 159 |
) / 255); |
| 160 | 160 |
} |
| 161 | 161 |
|
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
/* BlinkenLightsInteractiveMovieProgram |
| 2 |
- * version 0.4 date 2004-11-15 |
|
| 2 |
+ * version 0.5 date 2004-11-19 |
|
| 3 | 3 |
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
* a blinkenarea.org project |
| ... | ... |
@@ -0,0 +1,15 @@ |
| 1 |
+BlinkenLightsInteractiveMovieProgram |
|
| 2 |
+Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
|
| 3 |
+Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
|
| 4 |
+a blinkenarea.org project |
|
| 5 |
+powered by eventphone.de |
|
| 6 |
+ |
|
| 7 |
+version 0.5 date 2004-11-19 |
|
| 8 |
+--------------------------- |
|
| 9 |
+ - fixed a bug in channels 3..inf when drawing with alpha < 255 |
|
| 10 |
+ - default movie has now got a single frame |
|
| 11 |
+ - default format is now 8x8-1/128 |
|
| 12 |
+ |
|
| 13 |
+version 0.4 date 2004-11-15 |
|
| 14 |
+--------------------------- |
|
| 15 |
+ - first release |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 | 1 |
# BlinkenLightsInteractiveMovieProgram |
| 2 |
-# version 0.4 date 2004-11-15 |
|
| 2 |
+# version 0.5 date 2004-11-19 |
|
| 3 | 3 |
# Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> |
| 4 | 4 |
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html |
| 5 | 5 |
# a blinkenarea.org project |
| 6 | 6 |