confettireadme.txt

来自「java Applet程序 5.1 渐隐渐现的文字 5.2 旋转的图形 5」· 文本 代码 · 共 53 行

TXT
53
字号
Confetti.java  --  Confetti generator (ie, colored snow =)  )

To use:
<APPLET NAME="Confetti" CODE="Confetti.class" WIDTH="400" HEIGHT="300" ALIGN="BOTTOM">
<PARAM NAME="red" VALUE="500">
<PARAM NAME="blue" VALUE="250">
<PARAM NAME="yellow" VALUE="750">
<PARAM NAME="back" VALUE="mypicture.jpg">
</APPLET>


Accepted colors:
red
green
blue
yellow
cyan
magenta
orange
pink
white
lightGray
gray
darkGray
black

****************More detailed instructions******************
The WIDTH and HEIGHT should be set to the same size of the image you want
to confetti-ize.  If not, your image will be stretched/shrunk to fit 
within the applet, and may cause some distortion!  
The PARAM "back" is the background image - what you want confetti to 
appear over.  The applet will expect to find this image file in the same
directory as the Confetti.class file.  GIF and JPG are both supported.
The other parameters are colors --  Which color, and how many pieces of
that color you want falling.  You can mix and match as few or many of them
as you wish, at whatever amounts you want, to achieve the desired effect.

** more optional PARAM tags which have just been added:

pixSize = xxx    Specify the size of the confetti.  If omitted, defaults
to a size of 2.
frame = filename.ext   Specify a frame to place on the foreground of the
image --  Will show in front of everything else, can be used as a frame, 
etc.  Be sure to have transparency set on it so the rest of the applet
can show through!  Also, this image will be stretched/shrunken to fit the
applet size as well.  

delay = xxx  Delay time between frames.  Default=100.
xMin
xMax
yMin
yMax = xxx Control animation distance per frame.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?