亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rotatingcube.frm

?? 隨鼠標旋轉的立方體。
?? FRM
字號:
VERSION 5.00
Begin VB.Form frmMain 
   AutoRedraw      =   -1  'True
   BackColor       =   &H00C0C0C0&
   Caption         =   "Rotating Cube DEMO"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   DrawWidth       =   3
   FillColor       =   &H00C0C0C0&
   ForeColor       =   &H00FF0000&
   LinkTopic       =   "Form1"
   ScaleHeight     =   213
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   312
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   0  'None
      Height          =   1140
      Left            =   -1035
      ScaleHeight     =   76
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   772
      TabIndex        =   0
      Top             =   1440
      Width           =   11580
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Move the mouse towards the edges of the form to adjust rotation and speed"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   12
            Charset         =   161
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   300
         Left            =   0
         TabIndex        =   1
         Top             =   0
         Width           =   9135
      End
   End
   Begin VB.Timer Timer1 
      Interval        =   1
      Left            =   3825
      Top             =   2835
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Rotating Cube DEMO
'
'by Theo Kandiliotis
'   ionikh@ hol.gr
'   http://www.geocities.com/SiliconValley/Network/5045/home1.htm
'
Private X(8) As Integer
Private y(8) As Integer
'Integer arrays that hold the actual 2D coordinates of the
'8 corners of the cube.These are the values used to plot
'the cube on the form after the X,Y,Z coordinates of each cube
'corner have been converted to 2 dimensinal X and Y coordinates.
Private Const Pi = 3.14159265358979
'Constant used to convert degrees to radians
Private CenterX As Integer
Private CenterY As Integer
'The center of the 3 dimensional plane,where it's
'X=0 , Y=0 , Z=0
Private Const SIZE = 250
'The length of the cube achmes,therefore also adjusts the overall
'size.
Private Radius As Integer
'The radius of the rotation.Each one of the 8 corners of the cube
'rotates around the vertical Y axis with the same angular speed and radius
'of rotation.
Private Angle As Integer
'The value of this variable loops from 0 to 360 and it is passed
'as an argument to the COS and SIN functions (sine and cosine)
'that return the changing Z and X coordinates of each corner
'as the cube rotates around the Y axis
Private CurX As Integer
Private CurY As Integer
'Variables that hold the current mouse position on the form.
Private CubeCorners(1 To 8, 1 To 3) As Integer
'The array that holds the X,Y and Z coordinates of the 8 corners
'of the cube.Here's how the 8 corners are numbered:
'
'        7___________8
'        /|         /|             |
'       /_|________/ |             |  /
'       |3|       4| |             | /
'       | |        | |             |/
'       | |________|_|       ------|---------------> x(+)
'       | /5       | /6           /|
'       |/_________|/            / |
'      1           2        Z(+)/  |
'                                 \|/ Y(+)
'
'The center of the 3D plane is right on the center of the cube.
'So ,if SIZE the length of one achmes,it's:
'
'CenterCube(1,1) = SIZE/2   ' X coordinate of 1st corner
'CenterCube(1,2) = SIZE/2   ' Y coordinate
'CenterCube(1,3) = SIZE/2   ' Z coordinate
'
'Actually,we only need to give a value for the Y coordinates
'of each corner since that will never change during the rotation
'as all corners rotate around the Y axis ,with only their Z and X
'coordinates changing periodically.
Private Sub Form_Load()
Show
With Picture1
.Width = Label1.Width
.Height = Label1.Height
End With
Picture1.Move ScaleWidth / 2 - Picture1.ScaleWidth / 2, Picture1.Height
CenterX = ScaleWidth / 2
CenterY = ScaleHeight / 2
'Set the center of the 3D plane to reflect the center of the
'form.
Angle = 0
Radius = Sqr(2 * (SIZE / 2) ^ 2)
'Give a value to the radius of the rotation.This is
'the Pythagorean theorem that returns the length of the
'hypotenuse of a right triangle as the square root
'of the sum of the other two sides raised to the 2nd power.
CubeCorners(1, 2) = SIZE / 2
CubeCorners(2, 2) = SIZE / 2
CubeCorners(3, 2) = -SIZE / 2
CubeCorners(4, 2) = -SIZE / 2
CubeCorners(5, 2) = SIZE / 2
CubeCorners(6, 2) = SIZE / 2
CubeCorners(7, 2) = -SIZE / 2
CubeCorners(8, 2) = -SIZE / 2
'Assign a value to the Y coordinates of each cube.This
'will never change through out the rotation since the cube
'rotates around the Y axis.Play around with these if you like
'but the 3D prism will no longer resemble a cube :)
End Sub

Private Sub DrawCube()
Cls
For i = 1 To 8
X(i) = CenterX + CubeCorners(i, 1) + CubeCorners(i, 3) / 8
y(i) = CenterY + CubeCorners(i, 2) + Sgn(CubeCorners(i, 2)) * CubeCorners(i, 3) / 8
'These two lines contain the algorith that converts the
'coordinates of a point on the 3D plane (x,y,z) ,into 2
'dimensional X and Y coordinates that can be used to plot
'a point on the form.Play around with the 8's and see
'what happens...
Next
Line (X(3), y(3))-(X(4), y(4))
Line (X(4), y(4))-(X(8), y(8))
Line (X(3), y(3))-(X(7), y(7))
Line (X(7), y(7))-(X(8), y(8))
Line (X(1), y(1))-(X(3), y(3))
Line (X(1), y(1))-(X(2), y(2))
Line (X(5), y(5))-(X(6), y(6))
Line (X(5), y(5))-(X(1), y(1))
Line (X(5), y(5))-(X(7), y(7))
Line (X(6), y(6))-(X(8), y(8))
Line (X(2), y(2))-(X(4), y(4))
Line (X(2), y(2))-(X(6), y(6))
Line (X(1), y(1))-(X(4), y(4))
Line (X(2), y(2))-(X(3), y(3))

Line (X(4), y(4))-(X(8), y(8))
Line (X(3), y(3))-(X(7), y(7))
'The plotting of the cube onto the form.
'We have to draw each achmes seperately and then
' "connect"  the bottom square with the top square.
DoEvents
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, y As Single)
CurX = X
CurY = y
'Store the current position of the mouse cursor into
'the variable CurX,CurY.
End Sub

Private Sub Timer1_Timer()
Select Case CurX
Case Is > ScaleWidth / 2
Angle = Angle + Abs(CurX - ScaleWidth / 2) / 20
If Angle = 360 Then Angle = 0
Case Else
Angle = Angle - Abs(CurX - ScaleWidth / 2) / 20
If Angle = 0 Then Angle = 360
End Select
'Change the direction and the angular speed of the rotation
'according to the position of the mouse cursor.If it's near
'the left edge of the form then the rotation will be
'anti-clockwise ,it's near the right edge it will be
'clockwise. The closer to the center of the form the
'cursor is,the slower the cube rotates.
'The angular speed of the rotation is controlled by the
'pace at which 'Angle' (the value that we pass to the
'(COS and SIN functions) increases or decreases (increases
'for anti-clockwise rotation and decreases for clockwise
'rotation).
For i = 1 To 3 Step 2
CubeCorners(i, 3) = Radius * Cos((Angle) * Pi / 180)
CubeCorners(i, 1) = Radius * Sin((Angle) * Pi / 180)
Next
For i = 2 To 4 Step 2
CubeCorners(i, 3) = Radius * Cos((Angle + 2 * 45) * Pi / 180)
CubeCorners(i, 1) = Radius * Sin((Angle + 2 * 45) * Pi / 180)
Next
For i = 5 To 7 Step 2
CubeCorners(i, 3) = Radius * Cos((Angle + 6 * 45) * Pi / 180)
CubeCorners(i, 1) = Radius * Sin((Angle + 6 * 45) * Pi / 180)
Next
For i = 6 To 8 Step 2
CubeCorners(i, 3) = Radius * Cos((Angle + 4 * 45) * Pi / 180)
CubeCorners(i, 1) = Radius * Sin((Angle + 4 * 45) * Pi / 180)
Next
'Give the new values to the X and Z coordinates of each one
'of the 8 cube corners by using the COS and SIN mathematical
'functions.Notice that corners 1 and 3 always have the same
'X and Z coordinates, as well as 2 and 4, 5 and 7,6 & 8.
'Take a look at the little scetch on the top of the form
'to see how this is explained (imagine the cube rotating
'around the Y axis)
DrawCube
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91蜜桃婷婷狠狠久久综合9色| 欧美韩国一区二区| 91在线无精精品入口| 麻豆精品新av中文字幕| 国产91综合一区在线观看| 美女视频一区在线观看| 麻豆精品在线播放| 国产91对白在线观看九色| 成人黄色在线看| 91香蕉视频污在线| 91精品国产91久久久久久最新毛片| 欧美美女bb生活片| 日韩欧美你懂的| 亚洲美女免费视频| 精品一区二区三区免费播放| 97久久精品人人做人人爽50路| 精品视频在线视频| 久久久精品tv| 亚洲高清在线精品| 99re免费视频精品全部| 欧美一二三四区在线| 亚洲色欲色欲www| 国产麻豆午夜三级精品| 日韩视频一区在线观看| 洋洋av久久久久久久一区| 国产精品香蕉一区二区三区| 欧美日韩成人综合天天影院| 日本一区二区三区电影| 国产乱码精品一区二区三区忘忧草 | 91久久香蕉国产日韩欧美9色| 国产婷婷一区二区| 91国产福利在线| 美女一区二区三区在线观看| 中文字幕乱码日本亚洲一区二区| aaa国产一区| 午夜精品久久久久久久久久| 欧美在线制服丝袜| 亚洲电影你懂得| 日韩欧美成人一区二区| 美女在线观看视频一区二区| 精品国产伦一区二区三区免费| 美国毛片一区二区三区| 91精品国产美女浴室洗澡无遮挡| 亚洲第一二三四区| 91精品国产色综合久久不卡蜜臀| 日本女人一区二区三区| 精品国产亚洲一区二区三区在线观看| 天天免费综合色| 国产偷v国产偷v亚洲高清| 国产成人免费在线观看| 亚洲免费色视频| 精品欧美乱码久久久久久| 亚洲精品ww久久久久久p站| 欧美丰满嫩嫩电影| 成人av先锋影音| 免费看欧美美女黄的网站| 国产日韩欧美制服另类| 欧美综合色免费| 粉嫩久久99精品久久久久久夜| 国产精品久久久久影院| 欧美日韩精品综合在线| 国产成人综合在线播放| 午夜精品福利在线| 自拍偷拍亚洲综合| 久久精品一级爱片| 欧美精品丝袜久久久中文字幕| 成人高清在线视频| 久久成人麻豆午夜电影| 亚洲一区影音先锋| 亚洲男人的天堂一区二区| 精品国内二区三区| 欧美大片一区二区三区| 91久久免费观看| 99精品一区二区| 成人黄色小视频| 成人黄色片在线观看| 国产成人综合网| 免费在线成人网| 日本伊人精品一区二区三区观看方式| 亚洲天堂免费在线观看视频| 中文子幕无线码一区tr| 欧美国产97人人爽人人喊| 国产农村妇女精品| 中文字幕一区二区视频| 久久久精品tv| 日韩欧美一级二级| 日韩免费视频一区二区| www久久久久| 国产精品视频看| 午夜伦欧美伦电影理论片| 久久国产成人午夜av影院| 99re这里都是精品| 欧美一区三区四区| 亚洲自拍偷拍av| 国产永久精品大片wwwapp| 色94色欧美sute亚洲线路二 | 久久久久久久久久美女| 一区二区视频在线看| 国产在线日韩欧美| 91精品国产色综合久久不卡电影| 国产视频一区二区三区在线观看 | 色播五月激情综合网| 国产亚洲综合性久久久影院| 丝袜亚洲另类欧美| 欧美日韩免费一区二区三区视频| 亚洲国产精品成人久久综合一区| 蜜桃视频在线一区| 日韩欧美国产成人一区二区| 日韩高清一区在线| 欧美成人在线直播| 激情欧美日韩一区二区| 5858s免费视频成人| 日本亚洲三级在线| 欧美一级久久久| 国产自产v一区二区三区c| 4438x亚洲最大成人网| 日本在线播放一区二区三区| 日韩一区二区麻豆国产| 日本 国产 欧美色综合| 国产日韩精品一区二区浪潮av| 美国三级日本三级久久99| 精品国产1区二区| 国产99久久久国产精品免费看| 国产精品毛片高清在线完整版| 99久久精品免费| 夜夜揉揉日日人人青青一国产精品| 色婷婷亚洲婷婷| 蜜臀av性久久久久蜜臀aⅴ| 精品国产乱码久久| 91亚洲精品一区二区乱码| 日日夜夜精品视频免费| 日本一区二区三区dvd视频在线| 91免费版在线看| 国产精品99久久久| 亚洲成a人片在线不卡一二三区| 26uuu国产在线精品一区二区| 成人99免费视频| 另类欧美日韩国产在线| 亚洲特黄一级片| 欧美mv日韩mv国产网站app| 色综合天天狠狠| 风间由美性色一区二区三区| 亚洲一区二区视频在线观看| 国产欧美一区二区精品性色超碰| 欧美军同video69gay| 99久久综合国产精品| 国产麻豆午夜三级精品| 久久成人免费日本黄色| 日韩影院精彩在线| 偷拍日韩校园综合在线| 亚洲精品午夜久久久| 亚洲精选视频在线| 亚洲精品自拍动漫在线| 国产精品久久久久久久久搜平片| 日韩欧美资源站| 精品成人免费观看| 欧美韩日一区二区三区| 国产精品国产三级国产普通话99 | 欧美一级在线免费| 日韩女优av电影| 欧美精品一区二区久久婷婷| 精品国产乱码91久久久久久网站| 欧美一二区视频| 久久久一区二区三区捆绑**| 久久欧美一区二区| 日韩伦理免费电影| 天堂久久一区二区三区| 激情综合五月天| 成人综合婷婷国产精品久久蜜臀 | 4hu四虎永久在线影院成人| 精品成人一区二区| 成人欧美一区二区三区在线播放| 亚洲乱码国产乱码精品精小说| 亚洲精品福利视频网站| 毛片av中文字幕一区二区| 国产成人精品免费看| 色又黄又爽网站www久久| 欧美一区二区三区白人| 国产精品成人免费精品自在线观看| 亚洲综合男人的天堂| 国产精品亚洲午夜一区二区三区| 99国产精品久| 欧美成人女星排名| 亚洲小少妇裸体bbw| 国产成人亚洲综合a∨猫咪| 欧美三级日韩三级国产三级| 久久九九国产精品| 欧美bbbbb| 欧美日韩国产不卡| 樱花影视一区二区| 成人激情av网| 久久精品人人爽人人爽| 日本v片在线高清不卡在线观看| 91国产视频在线观看| 综合av第一页| 色婷婷精品久久二区二区蜜臀av| 欧美激情综合五月色丁香| 精品一区免费av| 精品福利在线导航| 国产综合色产在线精品|