C# Draw a Point on a Circle - Planet Orbiting

  Рет қаралды 36,540

Brandon Hilde

Brandon Hilde

Күн бұрын

/ brandonh1293

Пікірлер: 39
5 жыл бұрын
Can you make the code available please? I really want to learn about sine, consecution and tangent. Your link is down
@noimodimi9020
@noimodimi9020 7 жыл бұрын
I'm a beginner programmer who does little animations and simulations in JavaScript using the p5.js library, and this video feels like magic to me.
@xyberviri
@xyberviri 6 жыл бұрын
Is there any good videos/tutorials you've found that help with moving from the p5.js library to c#?
@صافي-ق8س
@صافي-ق8س 4 ай бұрын
thanks yagami light
@abdulmajid-yr8js
@abdulmajid-yr8js 5 жыл бұрын
Very nice, thank you!
@Player4funGaming
@Player4funGaming 2 жыл бұрын
I have a problem, when my function doesn't have this argument on my drawing function "object sender, PaintEventArgs e", it's not working.
@YigalBZ
@YigalBZ 4 жыл бұрын
Why are you calculating this: circle.X = loc.X - (circle.Width / 2) + area.X; circle.Y = loc.Y - (circle.Width / 2) + area.Y; Instead of assigning circle.X = loc.X circle.Y = loc.Y ? Shouldn't the point in the big circle be the center of the smaller circle? The difference is small (5pts), yet what for?
@tjdlamini4062
@tjdlamini4062 5 жыл бұрын
facing an error circle.X = loc.X - (circle.Width/2) + area.X; circle.Y = loc.Y - (circle.Height / 2) + area.Y; cannot implicitly convert type "double" to "float". An explicit conversion exists(are you missing a cast?).
@BrandonHilde129
@BrandonHilde129 5 жыл бұрын
circle.X = (float)(loc.X - (circle.Width/2) + area.X);
@risingson7681
@risingson7681 2 жыл бұрын
That helped me a lot bro!
@MRxPoundcakes
@MRxPoundcakes 3 жыл бұрын
Why use a rectangle class to make a circle?
@Sargunam45
@Sargunam45 7 жыл бұрын
Hi Brandon, Please, Could you make a video for detecting circle shape on a picture or a pdf file?
@luxraider5384
@luxraider5384 4 жыл бұрын
it doesn't seem that hard to do tbh
@LordRaaa
@LordRaaa 4 жыл бұрын
Nice, can we control the speed of orbit?
@BrandonHilde129
@BrandonHilde129 4 жыл бұрын
Change the angle += 0.5 to a different number
@juantaday
@juantaday 5 жыл бұрын
how to make a revolutions meter
@md.shahinurrahman3718
@md.shahinurrahman3718 5 жыл бұрын
Bro...... Can you copy and then paste the sample code???
@luxraider5384
@luxraider5384 4 жыл бұрын
you better undestand the code instead of copy paste programming...
@stranjata5410
@stranjata5410 4 жыл бұрын
How can we make it to move in the other direction?
@YigalBZ
@YigalBZ 4 жыл бұрын
change the "angle += 0.5f;" to angle -= 0.5f;
@luxraider5384
@luxraider5384 4 жыл бұрын
@@YigalBZ but he must changde the condition from < 360 to >-360
@zarghaamjunior5663
@zarghaamjunior5663 7 жыл бұрын
facing an error. float x = (radius = Math.Cos(angleInDegrees = Math.PI / 180f)) + origin.X; float y = (radius = Math.Sin(angleInDegrees = Math.PI / 180f)) + origin.Y; cannot implicitly convert type "double" to "float". An explicit conversion exists(are you missing a cast?).
@BrandonHilde129
@BrandonHilde129 7 жыл бұрын
you need to do something like (float)(radius = Math.Cos(angleInDegrees = Math.PI / 180f)) + origin.X);
@zarghaamjunior5663
@zarghaamjunior5663 7 жыл бұрын
Brandon Hilde~ still not working...
@BrandonHilde129
@BrandonHilde129 7 жыл бұрын
did you change it for both lines?
@zarghaamjunior5663
@zarghaamjunior5663 7 жыл бұрын
Brandon Hilde~ no i just tried on 1st.
@BrandonHilde129
@BrandonHilde129 7 жыл бұрын
adding (float) makes it a float if possible. you should look up casting a variable as a different type.
@modisanct4951
@modisanct4951 5 жыл бұрын
can you throw off this project? rewrote the code, but for some reason does not draw a small circle.
@BrandonHilde129
@BrandonHilde129 5 жыл бұрын
make sure you're not drawing one of the circles two times.
@modisanct4951
@modisanct4951 4 жыл бұрын
@@BrandonHilde129 Thank you, I'm an idiot, I didn’t put the sign correctly when finding the coordinates
@MRxPoundcakes
@MRxPoundcakes 3 жыл бұрын
Why use two Graphics?
@BrandonHilde129
@BrandonHilde129 3 жыл бұрын
The screen will flicker if you dont separate the drawing actions from the screen draw actions
@MRxPoundcakes
@MRxPoundcakes 3 жыл бұрын
@@BrandonHilde129 Thanks man
@MrZacki111
@MrZacki111 5 жыл бұрын
pastebin.com/1mALbjuy code
@shortbusheros4
@shortbusheros4 4 жыл бұрын
Turn your mic up, Jesus...
@kursadturkmenoglu9593
@kursadturkmenoglu9593 6 жыл бұрын
dude, change that hair style
@jesselopez1797
@jesselopez1797 5 жыл бұрын
Very nice, thank you!
How to draw a circle in Unity with Line Renderer
4:59
ZeroKelvinTutorials
Рет қаралды 33 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 36 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 84 МЛН
Drawing with C# Tutorial # 004 - draw a circle
11:32
Mojtaba Javadi
Рет қаралды 4,9 М.
C# Programming - Drawing Using The Graphics Class
19:56
Bill Butterfield
Рет қаралды 83 М.
Raylib Game Loop Basics
15:13
GameDevTutorials
Рет қаралды 7 М.
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 953 М.
Win32 - Drawing Pixels (C)
20:39
Samuli Natri
Рет қаралды 27 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
10. Memory Game with Windows Forms! | Intro To C# Programming
36:02
Michael Hicks
Рет қаралды 112 М.
C# Graphics How to Draw, move and copy a Line
12:05
Jason FinTech
Рет қаралды 18 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 36 МЛН