Вверх ↑
Ответов: 8921
Рейтинг: 823
#1: 2020-06-22 18:40:48 ЛС | профиль | цитата
Gitarist, окружности (дуги) рисуются проще через синусы/косинусы
SIN


Add(MainForm,2953706,259,63)
{
Width=434
link(onCreate,11335311:doWork2,[])
}
Add(Edit,12153667,161,133)
{
Left=5
Top=25
Text="100"
DataType=2
ClearAfterEnter=1
link(onEnter,6809032:doWork2,[(200,146)(200,118)])
}
Add(Label,13915465,112,175)
{
Left=20
Top=5
Width=91
Height=17
Caption="X Центр Y"
}
Add(Label,3205524,119,182)
{
Left=5
Top=50
Width=51
Height=17
Caption="Радиус R"
}
Add(Edit,15954973,266,133)
{
Left=5
Top=70
Text="80"
DataType=2
ClearAfterEnter=1
link(onEnter,5624251:doWork3,[(312,146)])
}
Add(Image,11758879,364,259)
{
Left=150
Top=30
Width=201
Height=201
Color=12639424
Point(doRefresh)
link(Bitmap,5323349:Var2,[])
}
Add(Label,13814760,259,287)
{
Left=50
Top=145
}
Add(Bitmap,16619400,364,63)
{
HWidth=201
HHeight=201
FillColor=12639424
Point(doCreate)
}
Add(Hub,14293548,175,224)
{
OutCount=3
link(onEvent1,14691064:doCalc,[])
link(onEvent2,13459956:doCalc,[])
link(onEvent3,10075584:doString,[(200,244)(200,293)])
}
Add(MathParse,13459956,210,231)
{
DataCount=3
MathStr="cos(%2/10)*%1 + %3"
ResultType=0
AngleMode=1
link(onResult,1116387:doDraw,[(249,237)(249,328)])
link(X1,14888807:Var1,[(216,208)])
link(X3,4405020:Var2,[])
}
Add(FormatStr,10075584,210,287)
{
Mask="X=%1 Y=%2"
link(onFString,13814760:doText,[])
link(Str1,13459956:Result,[])
link(Str2,13980225:Var1,[(223,271)])
}
Add(Img_Line,13468380,392,210)
{
Point(Point1)
Point(Point2)
Point(Size)
Point(Color)
link(onDraw,563300:doDraw,[])
link(Bitmap,3316699:Var2,[])
link(Point1,3319651:Point,[(405,178)(398,178)])
link(Point2,6834355:Point,[])
link(Size,1635941:Var1,[(419,194)])
link(Color,1635941:Var2,[])
}
Add(Img_Line,563300,441,210)
{
Point(Point1)
Point(Point2)
Point(Size)
Point(Color)
link(onDraw,11758879:doLoad,[(487,216)(487,230)(355,230)(355,265)])
link(Bitmap,3316699:Var3,[(447,187)])
link(Point1,2594502:Point,[(454,179)(447,179)])
link(Point2,14938808:Point,[])
link(Size,7114521:Var2,[])
link(Color,5246863:Var2,[])
}
Add(Hub,3052766,322,77)
{
link(onEvent1,16619400:doCreate,[])
link(onEvent2,4839593:doWork1,[(354,90)])
}
Add(PointXY,3319651,392,140)
{
X=100
link(X,8692592:Var2,[])
}
Add(PointXY,6834355,406,140)
{
X=100
Y=199
link(X,8692592:Var3,[(412,131)])
}
Add(PointXY,2594502,441,140)
{
Y=100
link(Y,15439192:Var2,[])
}
Add(PointXY,14938808,455,140)
{
X=200
Y=100
link(Y,15439192:Var3,[(468,124)])
}
Add(GetDataEx,5323349,364,182)
{
link(Data,16619400:Bitmap,[])
}
Add(GetDataEx,3316699,392,182)
{
Angle=3
link(Data,5323349:Var3,[])
}
Add(Memory,10239166,476,140)
{
Default=Integer(1)
}
Add(GetDataEx,1635941,420,189)
{
Angle=1
link(Data,7114521:Var1,[])
}
Add(GetDataEx,7114521,462,189)
{
Angle=1
link(Data,5246863:Var1,[])
}
Add(GetDataEx,5246863,469,189)
{
Angle=1
link(Data,10239166:Value,[(482,194)])
}
Add(Img_Point,1116387,364,322)
{
Color=255
Size=2
Point(X)
Point(Y)
Point(Color)
Point(Size)
link(onDraw,11758879:doRefresh,[(409,328)(409,301)(354,301)(354,279)])
link(Bitmap,11758879:ImageBitmap,[])
link(Y,13980225:Var3,[(384,313)(349,313)(349,271)])
link(Color,1580276:Value,[(391,306)(419,306)])
link(Size,2504854:Value,[(398,313)(461,313)])
}
Add(GetDataEx,8692592,392,126)
{
Angle=3
link(Data,4405020:Var3,[(349,131)(349,194)])
}
Add(GetDataEx,15439192,448,119)
{
Angle=3
link(Data,9720267:Var3,[(342,124)(342,187)])
}
Add(Edit,8039995,210,133)
{
Left=65
Top=25
Text="100"
DataType=2
ClearAfterEnter=1
link(onEnter,6809032:doWork3,[(256,146)])
}
Add(ScrollBar,10779851,119,224)
{
Left=135
Top=10
Width=230
Max=1800
Min=-1800
Page=10
link(onPosition,14293548:doEvent1,[])
}
Add(Memory,1580276,413,259)
{
Default=Integer(255)
}
Add(Memory,2504854,455,259)
{
Default=Integer(10)
}
Add(MathParse,14691064,266,224)
{
DataCount=3
MathStr="sin(%2/10)*%1 + %3"
ResultType=0
AngleMode=1
link(onResult,4839593:doWork2,[(305,230)(305,216)])
link(X1,14888807:Var2,[])
link(X3,9720267:Var2,[])
}
Add(GetDataEx,14888807,266,203)
{
link(Data,15954973:Text,[])
}
Add(GetDataEx,4405020,224,189)
{
Angle=3
link(Data,12153667:Text,[(167,194)])
}
Add(GetDataEx,9720267,280,182)
{
Angle=3
link(Data,8039995:Text,[(216,187)])
}
Add(HubEx,4839593,350,210)
{
link(onEvent,13468380:doDraw,[])
}
Add(GetDataEx,13980225,266,266)
{
link(Data,14691064:Result,[])
}
Add(HubEx,11335311,308,77)
{
link(onEvent,3052766:doEvent1,[])
}
Add(HubEx,5624251,308,112)
{
Angle=3
link(onEvent,11335311:doWork3,[])
}
Add(HubEx,6809032,252,112)
{
link(onEvent,5624251:doWork2,[])
}

карма: 19

0