Tuesday, January 10, 2023

Python Turtle Graphics Drawing - React JS Logo

Python Turtle Graphics Drawing - React JS Logo

Youtube


Source code:

from turtle import *
from math import sin, cos, atan2, degrees, radians

'''
Draw Bezier Curve
'''
def cbezto(b, c, d):
    a = pos()
    t = 0.0
    while t <= 1.0:
        t3 = t**3
        t2 = t**2
        f1 = -t3 + 3 * t2 - 3 * t + 1
        f2 = 3 * t3 - 6 * t2 + 3 * t
        f3 = -3 * t3 + 3 * t2
        f4 = t3
        x = a[0]*f1+b[0]*f2+c[0]*f3+d[0]*f4
        y = a[1]*f1+b[1]*f2+c[1]*f3+d[1]*f4
        d1 = -3 * t2 + 6 * t - 3
        d2 = 9 * t2 - 12 * t + 3
        d3 = -9 * t2 + 6 * t
        d4 = 3 * t2
        dx = a[0]*d1+b[0]*d2+c[0]*d3+d[0]*d4
        dy = a[1]*d1+b[1]*d2+c[1]*d3+d[1]*d4
        angr = atan2(dy, dx)
        seth(degrees(angr))
        goto(x, y)
        t += 0.05
    goto(d)

'''
Rotate Point
'''
def rot(p, a):
    ang = radians(a)
    x = p[0] * cos(ang) - p[1] * sin(ang)
    y = p[0] * sin(ang) + p[1] * cos(ang)
    return (x, y)

setup(560, 560)
bgcolor('black')
color("#61DBFB")
up()
pensize(22)
#Bezier points
PTS = [
    [(242, 38),(172, 92),(-0, 92)],
    [(-172, 92),(-242, 38),(-242, 0)],
    [(-242, -38),(-172, -92),(0, -92)],
    [(172, -92),(242, -38),(242, -0)]
]
for i in range(3):
    ang = i * 60
    goto(rot((242, 0), ang))
    down()
    for j in range(4):
        p1 = rot(PTS[j][0],ang)
        p2 = rot(PTS[j][1],ang)
        p3 = rot(PTS[j][2],ang)
        cbezto(p1,p2,p3)
    up()

goto(45, 0)
seth(90)
down()
pensize(0)
begin_fill()
circle(45)
end_fill()
hideturtle()
bgcolor('white')
done()

Sunday, January 8, 2023

Python Turtle Graphics Drawing - Batman Logo

Python Turtle Graphics Drawing - Batman Logo

Youtube

Featuring: 

Bézier curve



Source code:

from turtle import *
from math import atan2,degrees
setup(750,450)

YEL = '#FFF800'
BLK = '#000000'

def cbezto(b,c,d):
    a=pos()
    t = 0.0
    while t <= 1.0:
        t3 = t**3
        t2 = t**2
        f1 = -t3+3*t2-3*t+1
        f2 = 3*t3-6*t2+3*t
        f3 = -3*t3+3*t2
        f4 = t3
        x = a[0]*f1 + b[0]*f2 + c[0]*f3 + d[0]*f4
        y = a[1]*f1 + b[1]*f2 + c[1]*f3 + d[1]*f4
        d1 = -3*t2+6*t-3
        d2 = 9*t2-12*t+3
        d3 = -9*t2+6*t
        d4 = 3*t2
        dx = a[0]*d1 + b[0]*d2 + c[0]*d3 + d[0]*d4
        dy = a[1]*d1 + b[1]*d2 + c[1]*d3 + d[1]*d4
        angr = atan2(dy, dx)
        seth(degrees(angr))
        goto(x, y)
        t += 0.05
    goto(d)


up()
lt(90)
fd(200)
down()
color(BLK)
begin_fill()
cbezto((203,198),(350,107),(350,0))
cbezto((350,-107),(203,-198),(0,-200))
cbezto((-203,-198),(-350,-107),(-350,0))
cbezto((-350,107),(-203,198),(0,200))
end_fill()

color(YEL)
up()
rt(93.1)
fd(10)
down()
begin_fill()
cbezto((208,188),(339,99),(340,0))
cbezto((339,-99),(208,-188),(0,-190))
cbezto((-208,-188),(-339,-99),(-340,0))
cbezto((-339,99),(-208,188),(0,190))
end_fill()

color(BLK)
up()
rt(93)
fd(331)
down()
begin_fill()
cbezto((21,-55),(81,-38),(107,-85))
cbezto((166,-17),(242,-75),(185,-129))
cbezto((391,-47),(323,106),(131,149))
cbezto((194,65),(91,23),(48,64))
cbezto((39,94),(36,127),(36,166))
lt(150.8)
fd(47.9)
rt(61.3)
fd(26)
rt(61.3)
fd(47.9)
cbezto((-36,127),(-39,94),(-48,64))
cbezto((-91,23),(-194,65),(-131,149))
cbezto((-323,106),(-391,-47),(-185,-129))
cbezto((-242,-75),(-166,-17),(-107,-85))
cbezto((-81,-38),(-21,-55),(0,-141))
end_fill()
hideturtle()
done()

Saturday, January 7, 2023

Python Turtle Graphics Drawing - New Balance Logo

Python Turtle Graphics Drawing - New Balance Logo

Featuring: 

Bézier curve

Youtube


Source code:

from turtle import *
from math import atan2,degrees

setup(500,500)
speed('slowest')

def cbezto(b,c,d):
    a=pos()
    t = 0.0
    while t <= 1.0:
        t3 = t**3
        t2 = t**2
        f1 = -t3+3*t2-3*t+1
        f2 = 3*t3-6*t2+3*t
        f3 = -3*t3+3*t2
        f4 = t3
        x = a[0]*f1 + b[0]*f2 + c[0]*f3 + d[0]*f4
        y = a[1]*f1 + b[1]*f2 + c[1]*f3 + d[1]*f4
        d1 = -3*t2+6*t-3
        d2 = 9*t2-12*t+3
        d3 = -9*t2+6*t
        d4 = 3*t2
        dx = a[0]*d1 + b[0]*d2 + c[0]*d3 + d[0]*d4
        dy = a[1]*d1 + b[1]*d2 + c[1]*d3 + d[1]*d4
        angr = atan2(dy, dx)
        seth(degrees(angr))
        goto(x, y)
        t += 0.05
    goto(d)


RED = '#E21836'

up()
lt(180)
fd(180)
down()
color(RED)
begin_fill()
rt(119.9)
fd(206.5)
rt(60.1)
fd(68.5)
rt(75.5)
fd(66.1)
lt(135.8)
fd(73.7)
rt(60.3)
fd(103.5)
cbezto((220,178),(195.5,105),(138.5,90.5))
cbezto((191,75),(152,0),(70,0))
rt(5.3)
fd(112)
rt(75.4)
fd(65.6)
lt(135.9)
fd(73)
rt(60.4)
fd(85.5)
end_fill()

color('white')
up()
rt(158.8)
fd(304.6)
down()
begin_fill()
lt(158.8)
fd(17.5)
rt(119.8)
fd(39.2)
rt(60.2)
fd(17.5)
cbezto((140.5,140),(132.5,109.5),(104,110))
end_fill()

up()
lt(57.8)
fd(38.7)
down()
begin_fill()
rt(63.1)
fd(20)
lt(60)
fd(41)
lt(120)
fd(21)
cbezto((98,41),(106.5,73.5),(86.5,75.5))
end_fill()

up()
rt(10.9)
fd(198.3)
down()
begin_fill()
rt(157.1)
fd(177.4)
rt(115.9)
fd(4)
rt(56.7)
fd(191.9)
rt(124.5)
fd(32.1)
end_fill()

up()
rt(176.4)
fd(46.7)
down()
begin_fill()
lt(113.8)
fd(175.8)
rt(118.4)
fd(4.7)
rt(54.4)
fd(189.4)
rt(124.3)
fd(31.4)
end_fill()


up()
lt(179.3)
fd(48)
down()
begin_fill()
lt(117.8)
fd(176.8)
rt(116.2)
fd(4)
rt(56.5)
fd(189.9)
rt(122.8)
fd(30.9)
end_fill()

up()
lt(179.2)
fd(47.3)
down()
begin_fill()
lt(116.4)
fd(177.3)
rt(122.1)
fd(4.3)
rt(50.4)
fd(191)
rt(124.2)
fd(31.8)
end_fill()
up()
fnt = ('Century Gothic', 54,'bold')
color(RED)
goto(0,-85)
write('new balance',font=fnt,align='center')
hideturtle()

done()

Thursday, January 5, 2023

Python Turtle Graphics Drawing - Youtube Shorts Logo

 Python Turtle Graphics Drawing - Youtube Shorts Logo

Youtube


Source code:

from turtle import *
setup(540,700)
RED = '#F40407'
up()
lt(138.8)
fd(256.5)
down()
color(RED)
begin_fill()
rt(111.3)
fd(314.4)
rt(94.8)
fd(247)
rt(84.6)
fd(53.2)
lt(74.3)
fd(238.5)
rt(74.7)
fd(301.5)
rt(92.2)
fd(246.9)
rt(87.7)
fd(68.9)
lt(78.6)
fd(235.4)
end_fill()

up()
rt(80.3)
fd(349.3)
down()
lt(159.1)
begin_fill()
circle(123.6)
end_fill()
up()
lt(44.9)
fd(486.2)
down()
lt(103.4)
begin_fill()
circle(122.5)
end_fill()
up()
lt(43.4)
fd(378.1)
down()
lt(147.1)
begin_fill()
circle(123.6)
end_fill()
up()
lt(66.5)
fd(494.8)
down()
lt(123.9)
begin_fill()
circle(123)
end_fill()

color('white')
up()
lt(59.4)
fd(399.7)
down()
begin_fill()
lt(94.6)
fd(190.4)
lt(121.7)
fd(200)
lt(121.7)
fd(190.4)
end_fill()
done()

Tuesday, December 27, 2022

Pyhton Turtle Graphics Drawing - C Sharp / C# Logo

 Pyhton Turtle Graphics Drawing - C Sharp / C# Logo

Youtube



Source code:

from turtle import *
from math import sin,radians,sqrt

title('CSharp Logo')
setup(500, 550)
shape('turtle')
speed('slowest')

C1 = '#953DAC'
C2 = '#68217A'
C3 = '#822C98'
R = 250
F = 40 # fillet
hy = F/sin(radians(60))
aj = sqrt(hy*hy-F*F)
L = R - 2*aj
fR = R-(hy-F)

def half():
    begin_fill()
    fd(fR)
    lt(90)
    circle(F, 30)
    fd(L)
    circle(F, 60)
    fd(L)
    circle(F, 60)
    fd(L)
    circle(F, 30)
    lt(90)
    fd(fR)
    end_fill()

def small():
    pensize(1)
    color('orange')
    seth(-30)
    begin_fill()
    fd(fR)
    lt(90)
    circle(F, 30)
    fd(L)
    circle(F, 30)
    lt(90)
    fd(fR)
    color(C3)
    end_fill()
    seth(0)

def hbar():
    seth(0)
    down()
    begin_fill()
    fd(70)
    rt(90)
    fd(13)
    rt(90)
    fd(70)
    rt(90)
    fd(13)
    end_fill()
    up()

def vbar():
    seth(0)
    down()
    begin_fill()
    fd(15)
    rt(100.7)
    fd(86.5)
    rt(79.3)
    fd(15)
    rt(100.7)
    fd(86.5)
    end_fill()
    up()

color(C1)
lt(30)
half()
color(C2)
lt(180)
half()
seth(0)
up()
pencolor('white')
pensize(74)
fd(111)
lt(90)
down()
circle(111)
up()
lt(90)
fd(111)
small()
color('white')
up()
goto(113,30)
hbar()
goto(113-4,-3)
hbar()
goto(130, 49)
vbar()
goto(130+32,49)
vbar()

hideturtle()
done()

Wednesday, December 21, 2022

Python Tutle Graphics Drawing - Adidas Logo

Python Tutle Graphics Drawing - Adidas Logo

Youtube


Source code:

from turtle import *

setup(550,550)

def leaf(pos,ang):
    color('black')
    up()
    goto(pos)
    seth(ang-41)
    down()
    begin_fill()
    circle(257.4,82.1)
    lt(98)
    circle(257.6,82)
    end_fill()

def bar(y):
    up()
    color('white')
    goto(-240,y)
    seth(0)
    begin_fill()
    fd(480)
    rt(90)
    fd(18)
    rt(90)
    fd(480)
    rt(90)
    fd(18)
    end_fill()

leaf((0,-68),90)
leaf((35,-64),50)
leaf((-35,-64),130)
y=67
for i in range(3):
    bar(y)
    y-=36.5
fnt=('Century Gothic',115,'bold')
color('black')
goto(0,-245)
write('adidas',font=fnt,align='center')
done()

Python Turtle Graphics Drawing - Dell Logo

 Python Turtle Graphics Drawing - Dell Logo

Youtube



Source code:

from turtle import *

BLU = '#007EB9'
WHI = 'white'
setup(500,500)
color(BLU)
up()
fd(219)
down()
lt(90)
begin_fill()
circle(219)
end_fill()

color(WHI)
up()
lt(90)
fd(24)
down()
rt(90)
begin_fill()
circle(195)
end_fill()

color(BLU)
up()
lt(90)
fd(61)
down()
begin_fill()
lt(90)
fd(18)
lt(90)
fd(32.5)
rt(90)
fd(27)
rt(90)
fd(65.5)
rt(90)
fd(94)
rt(90)
fd(33)
rt(90)
fd(49)
end_fill()

up()
rt(90)
fd(74.5)
down()
begin_fill()
lt(90)
fd(18)
lt(90)
fd(33)
rt(90)
fd(27)
rt(90)
fd(65.5)
rt(90)
fd(32.5)
lt(128.2)
fd(68.7)
rt(76.4)
fd(63)
lt(103.9)
circle(-49.4,64)
rt(1.7)
fd(42.5)
rt(90)
fd(94)
rt(90)
fd(42.5)
rt(0.2)
circle(-47.1,67.8)
lt(106.3)
fd(63)
rt(77.1)
fd(23.1)
rt(102.9)
fd(57.3)
lt(104.3)
fd(10.7)
lt(75.7)
fd(57.3)
rt(76.4)
fd(23.5)
rt(103.6)
fd(57.3)
lt(102.3)
fd(11)
lt(77.4)
fd(57.7)
lt(52)
fd(33)
rt(90)
fd(32.5)
rt(90)
fd(49)
end_fill()

color(WHI)
up()
rt(96.9)
fd(183.3)
down()
begin_fill()
lt(6.9)
fd(8.5)
lt(90)
fd(40.5)
lt(90)
fd(8.5)
lt(1.9)
circle(20.3,176.1)
end_fill()
hideturtle()
done()

Monday, December 19, 2022

Python Turtle Graphics Drawing - WhatsApp Logo

Python Turtle Graphics Drawing - WhatsApp Logo

Youtube


Source code:

from turtle import *

GRN = '#41C452'
setup(500,500)
bgcolor('gray')
color('white')

up()
rt(135.4)
fd(288.2)
down()
begin_fill()
lt(149.7)
fd(111.0)
rt(42.7)
circle(201.2,328.2)
rt(45.1)
fd(108.3)
end_fill()

up()
lt(149.4)
fd(68.2)
down()
color(GRN)
begin_fill()
rt(29.0)
fd(65.3)
rt(48.0)
circle(167.7,337.4)
rt(48.8)
fd(64.8)
end_fill()

color('white')
up()
lt(161.9)
fd(198.2)
down()
begin_fill()
rt(119.0)
circle(131.4,41.3)
lt(2.2)
circle(7.7,57.2)
lt(11.4)
fd(27.8)
lt(2.3)
circle(-8.0,84.2)
lt(5.6)
fd(46.0)
lt(3.7)
circle(-5.8,70.7)
lt(5.2)
circle(-44.2,42.5)
lt(-8.8)
circle(-60.3,65.4)
lt(6.7)
circle(-204.1,49.0)
lt(-3.2)
circle(-63.5,49.2)
lt(-1.6)
circle(-51.2,15.4)
lt(6.8)
circle(-22.1,37.9)

rt(12.6)
fd(12.9)

rt(4.4)
circle(-11.5,45.2)
rt(17.4)
fd(47.2)
lt(1.8)
circle(-9.4,57.9)
lt(6.6)
circle(-54.7,23.1)
lt(6.7)
circle(7.2,81.6)
end_fill()

hideturtle()
done()

Sunday, December 18, 2022

Python Turtle Graphics Drawing - Gopher

Python Turtle Graphics Drawing - Gopher

Youtube



Source code:

from turtle import *
setup(500,500)

BLU = '#74CEDD'
BRO = '#F7D3A2'
pensize(4)

up()
rt(57.8)
fd(181.3)
down()
pencolor('black')
fillcolor(BRO)
begin_fill()
lt(14.7)
fd(13.5)
rt(5.4)
fd(12.6)
rt(14.5)
fd(7.6)
rt(28.4)
fd(4.8)
rt(32.2)
fd(6.6)
rt(21.1)
fd(7.7)
rt(36.5)
fd(5.4)
rt(33)
fd(10.3)
rt(16.6)
fd(9.3)
lt(9.3)
fd(8.7)
rt(1.8)
fd(9.1)
rt(101.6)
fd(26.1)
end_fill()
up()
rt(104.2)
fd(25.9)
down()
lt(14.7)
fd(6.3)
rt(14.4)
fd(8.2)

up()
rt(115.4)
fd(181.5)
down()
begin_fill()
lt(11.4)
fd(8.8)
lt(19.7)
fd(10.1)
lt(11.6)
fd(11.5)
lt(2)
fd(6.6)
rt(15.4)
fd(6.4)
rt(20.8)
fd(4.9)
rt(40.9)
fd(4.7)
rt(26)
fd(3.5)
lt(58.7)
fd(1.8)
rt(49.9)
fd(4.6)
rt(30.2)
fd(4.7)
rt(19.8)
fd(6.2)
rt(28.6)
fd(11.3)
rt(10)
fd(17.7)
rt(70.8)
fd(35.5)
end_fill()

up()
rt(144.1)
fd(40.6)
down()
lt(58.1)
fd(6)
rt(9.1)
fd(5.2)
lt(17.7)
fd(3.1)
up()
lt(151.7)
fd(322.1)
down()
begin_fill()
rt(42.7)
fd(11)
rt(17.6)
fd(9.2)
rt(14.7)
fd(6.7)
rt(17.4)
fd(7.2)
rt(26.6)
fd(4.4)
rt(60.1)
fd(4.1)
lt(44.8)
fd(3.7)
rt(34.3)
fd(3.8)
rt(36.4)
fd(4.8)
rt(29.2)
fd(5.8)
rt(16.5)
fd(7.8)
lt(9.9)
fd(9.1)
rt(71.8)
fd(19.5)
end_fill()
up()
rt(125.6)
fd(27.8)
down()
rt(5.7)
fd(3.7)
lt(34.4)
fd(2.8)

up()
rt(175.2)
fd(277.6)
down()
begin_fill()
rt(1.4)
fd(9.7)
lt(16.7)
fd(9.8)
lt(18.3)
fd(10.3)
lt(16.7)
fd(6.1)
lt(28.2)
fd(4.7)
lt(49.2)
fd(5)
rt(21.7)
fd(4)
lt(27.1)
fd(4.5)
lt(47.7)
fd(4.8)
lt(19.9)
fd(5.9)
lt(16.1)
fd(9.2)
rt(20.1)
fd(8.2)
lt(74)
fd(18.5)
end_fill()
up()
lt(125.4)
fd(30.6)
down()
lt(10.8)
fd(2.6)
rt(21.5)
fd(3.3)

up()
rt(161.8)
fd(315.1)
down()
fillcolor(BLU)
begin_fill()
lt(14.1)
circle(-27.8,93.7)
lt(4.3)
circle(-30.6,54.2)
rt(3.5)
circle(-27,72.7)
rt(67.8)
fd(55.2)
end_fill()
up()
rt(153.7)
fd(16.7)
down()
fillcolor('black')
begin_fill()
lt(58.7)
circle(-10,175.2)

up()
rt(92.4)
fd(20)
down()
lt(180)
fd(20)
end_fill()

up()
rt(129.6)
fd(210.9)
down()
fillcolor(BLU)
begin_fill()
rt(37.4)
circle(30.3,86)
rt(3.9)
circle(27.8,56.1)
rt(0.2)
circle(25.3,79)
lt(64.4)
fd(55.3)
end_fill()

up()
lt(152.2)
fd(23.1)
down()
fillcolor('black')
begin_fill()
rt(64.8)
circle(9.4,180.7)
rt(3.4)
fd(3.8)
lt(27.8)
fd(5.7)
lt(67.6)
fd(15.3)
lt(70.2)
fd(5.8)
lt(22.4)
fd(2.9)
end_fill()

up()
rt(129.8)
fd(124.2)
down()
fillcolor(BLU)
begin_fill()
rt(20.7)
circle(-200.6,19.5)
rt(3.4)
circle(-90.3,55)
lt(0.5)
circle(-324.4,13.6)
lt(0.5)
circle(2316.4,3.4)
lt(0.8)
circle(-136.8,43.7)
rt(10)
circle(-160.4,80.8)
rt(7.9)
circle(-105.7,51.9)
lt(2.6)
circle(546.9,16)
rt(1.9)
circle(-168.1,36.9)
rt(17.1)
circle(-155.8,44.3)
end_fill()

up()
rt(89.2)
fd(120.6)
down()
fillcolor('white')
begin_fill()
rt(2.9)
fd(15.4)
lt(3.2)
fd(9.7)
rt(48.3)
fd(8.8)
rt(36.4)
fd(4.4)
rt(41.3)
fd(6.2)
rt(32.9)
fd(7.9)
rt(18.6)
fd(8.3)
rt(10.9)
fd(9.4)
rt(73.4)
fd(18.9)
end_fill()

up()
rt(14.5)
fd(16.1)
down()
begin_fill()
rt(82.3)
fd(13.8)
rt(0.8)
fd(10.9)
rt(47.5)
fd(5.9)
rt(22.9)
fd(4.4)
rt(42)
fd(5.1)
rt(26)
fd(5.6)
rt(34.6)
fd(11.3)
rt(11.8)
fd(12.4)
rt(71.3)
fd(11)
rt(32.5)
fd(6.7)
end_fill()

up()
lt(163.1)
fd(35.3)
down()
fillcolor(BRO)
begin_fill()
lt(36.7)
fd(7.7)
lt(37.3)
fd(8.3)
lt(4.8)
circle(13,96.3)
lt(18)
fd(4.4)
lt(31.3)
fd(8.2)
lt(12.2)
fd(4.9)
lt(3.4)
circle(-23.9,50.8)
rt(13.6)
circle(14.3,78.4)
lt(1.3)
circle(10.5,94.1)
rt(4)
circle(32.3,34.7)
lt(19.5)
fd(26.4)
end_fill()

up()
rt(107.1)
fd(12.9)
down()
fillcolor('black')
begin_fill()
rt(49.4)
circle(-21.7,62.5)
lt(4.8)
circle(-8.7,84.3)
rt(25.3)
circle(-28.4,37.6)
lt(0.5)
circle(-23.2,40.7)
rt(17.4)
circle(-8.2,74.8)
lt(5)
circle(-12,36.1)
end_fill()

up()
lt(41.9)
fd(66.5)
down()
fillcolor('white')
begin_fill()
rt(25)
circle(-42.1,77.8)
rt(2.4)
circle(-37.3,81)
rt(6.1)
circle(-45.7,57.6)
lt(3.1)
circle(-36.5,73.1)
rt(2.2)
circle(-37.2,65.4)
end_fill()

up()
lt(150)
fd(51.2)
down()
begin_fill()
rt(37)
circle(44.1,67.7)
lt(0.4)
circle(37.3,72.1)
lt(0.9)
circle(36.3,78.4)
rt(7.4)
circle(40,66.7)
lt(3.3)
circle(37.8,73.8)
end_fill()

up()
rt(165.6)
fd(50.9)
down()
fillcolor('black')
begin_fill()
lt(71.8)
circle(-10.6,99.1)
lt(3.9)
circle(-12.8,90.1)
lt(1.5)
circle(-10.5,85.9)
rt(0.8)
circle(-13.6,88.3)
end_fill()

up()
lt(131.9)
fd(83.8)
down()
begin_fill()
rt(47.1)
circle(11.2,91.4)
lt(2.6)
circle(13.8,88.5)
lt(3.2)
circle(11.3,76.2)
lt(3.5)
circle(13.6,93.4)
end_fill()

up()
rt(139.8)
fd(100.6)
down()
pensize(2)
color('white')
begin_fill()
lt(60.3)
circle(3.3)
end_fill()

up()
lt(127.1)
fd(99.3)
down()
begin_fill()
rt(95.1)
circle(3.4)
end_fill()

hideturtle()
done()

Circle Animation with ImGui

 Circle Animation with ImGui for C++ Youtube: Source code: void CircFunc () {     static int nc = 360 ;     double radius = 300 ;     ...