VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Begin VB.Form frm1 
   BackColor       =   &H00C0C0FF&
   Caption         =   "Анимация"
   ClientHeight    =   4128
   ClientLeft      =   4200
   ClientTop       =   2724
   ClientWidth     =   3876
   LinkTopic       =   "Form1"
   ScaleHeight     =   4128
   ScaleWidth      =   3876
   Begin ComctlLib.Slider sld1 
      Height          =   372
      Left            =   240
      TabIndex        =   3
      Top             =   3000
      Width           =   1692
      _ExtentX        =   2985
      _ExtentY        =   656
      _Version        =   327682
   End
   Begin VB.CommandButton cmdSld 
      Caption         =   "Скорость вращения"
      Height          =   375
      Left            =   2040
      TabIndex        =   2
      Top             =   3000
      Width           =   1695
   End
   Begin VB.CommandButton cmdStart 
      Caption         =   "Пуск"
      Height          =   375
      Left            =   1440
      TabIndex        =   1
      Top             =   3600
      Width           =   1095
   End
   Begin VB.PictureBox picAnim 
      BackColor       =   &H00FF0000&
      FillStyle       =   0  'Solid
      Height          =   2775
      Left            =   480
      ScaleHeight     =   2724
      ScaleWidth      =   2844
      TabIndex        =   0
      Top             =   120
      Width           =   2895
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim bytS As Byte
Private Sub cmdStart_Click()
'Количество оборотов
intRev = 100
'Масштаб
picAnim.Scale (-10, 10)-(10, -10)
'Анимация
For intN = 1 To 360 * intRev
'Орбита Земли
picAnim.Circle (0, 0), 8, vbYellow
'Солнце
picAnim.FillColor = vbYellow
picAnim.Circle (0, 0), 2, vbYellow
'Рисование Земли
picAnim.FillColor = vbCyan
picAnim.Circle (8 * Sin(6.28 / 360 * intN), 8 * Cos(6.28 / 360 * intN)), 1, vbCyan
'Задержка стирания
For intI = 1 To 100000 * bytS
Next intI
'Стирание Земли
picAnim.FillColor = vbBlue
picAnim.Circle (8 * Sin(6.28 / 360 * intN), 8 * Cos(6.28 / 360 * intN)), 1, vbBlue
Next intN
End Sub
Private Sub cmdSld_Click()
bytS = sld1.Value
End Sub

