Click here to Skip to main content
15,867,453 members
Home / Discussions / Python
   

Python

 
QuestionRead the file data and devide Pin
Music Vines16-Mar-23 23:24
Music Vines16-Mar-23 23:24 
AnswerRe: Read the file data and devide Pin
Dave Kreskowiak17-Mar-23 2:25
mveDave Kreskowiak17-Mar-23 2:25 
AnswerRe: Read the file data and devide Pin
Richard MacCutchan17-Mar-23 2:44
mveRichard MacCutchan17-Mar-23 2:44 
QuestionPython SYN flood test Pin
Alex Wright 20224-Mar-23 6:10
Alex Wright 20224-Mar-23 6:10 
AnswerRe: Python SYN flood test Pin
Richard MacCutchan4-Mar-23 6:21
mveRichard MacCutchan4-Mar-23 6:21 
Questionpymodbus make a connection with server every each command? Pin
Super Y1-Mar-23 15:05
Super Y1-Mar-23 15:05 
AnswerRe: pymodbus make a connection with server every each command? Pin
Richard MacCutchan1-Mar-23 22:33
mveRichard MacCutchan1-Mar-23 22:33 
QuestionPython - Pygame - Fill screen with triangles without gaps Pin
Tairros8-Feb-23 10:34
Tairros8-Feb-23 10:34 
I am new to this page and am hoping I have this in the right place.
I am using python combined with pygame to try and generate a screen that is full of random triangles that completely fill the screen with no gaps while each triangle has random length of sides. So it would be partially random while also taking into account the remaining spaces when generating so that it leaves no space uncovered but no overlapping either. IE. Black background and white triangles, the screen actually consists of 100 triangles but because they are all white the screen just looks solid white.
I originally tried to do this with random vertices and trying to connect the sides but that was... messy to say the least and didn't play nice.

Does anyone know any path I could look into for figuring this out?
I'm not looking for full code of having someone do it for me, I just need to figure this out and get an idea on either a method I'm not thinking of or some math I can look at for generation.

Forgive the long winded explanation.
AnswerRe: Python - Pygame - Fill screen with triangles without gaps Pin
Peter_in_27808-Feb-23 14:07
professionalPeter_in_27808-Feb-23 14:07 
GeneralRe: Python - Pygame - Fill screen with triangles without gaps Pin
Tairros9-Feb-23 4:41
Tairros9-Feb-23 4:41 
GeneralRe: Python - Pygame - Fill screen with triangles without gaps Pin
Peter_in_27809-Feb-23 13:25
professionalPeter_in_27809-Feb-23 13:25 
QuestionPython learning Pin
Nahid.hb25-Dec-22 1:01
Nahid.hb25-Dec-22 1:01 
AnswerRe: Python learning Pin
OriginalGriff25-Dec-22 1:06
mveOriginalGriff25-Dec-22 1:06 
AnswerRe: Python learning Pin
Kevin McFarlane10-Jan-23 0:05
Kevin McFarlane10-Jan-23 0:05 
QuestionTennis racket Pin
Member 1586879618-Dec-22 10:04
Member 1586879618-Dec-22 10:04 
QuestionRe: Tennis racket Pin
Richard MacCutchan18-Dec-22 21:46
mveRichard MacCutchan18-Dec-22 21:46 
QuestionMessage Closed Pin
6-Dec-22 21:28
Tangent Technologies6-Dec-22 21:28 
AnswerRe: Variables Pin
trønderen6-Dec-22 22:29
trønderen6-Dec-22 22:29 
QuestionDSA DOUBT Pin
Krishang Gupta1-Dec-22 11:03
Krishang Gupta1-Dec-22 11:03 
AnswerRe: DSA DOUBT Pin
Richard Deeming1-Dec-22 22:08
mveRichard Deeming1-Dec-22 22:08 
QuestionHow to iterate within a list in python? Pin
ryandaniel1724-Nov-22 18:48
ryandaniel1724-Nov-22 18:48 
AnswerRe: How to iterate within a list in python? Pin
Richard MacCutchan24-Nov-22 22:13
mveRichard MacCutchan24-Nov-22 22:13 
AnswerRe: How to iterate within a list in python? Pin
Gulshan Negi15-Mar-23 23:28
professionalGulshan Negi15-Mar-23 23:28 
QuestionPlz Help Trying to make driving game more realistic and fun (pygame) Pin
s897422-Nov-22 20:41
s897422-Nov-22 20:41 
AnswerRe: Plz Help Trying to make driving game more realistic and fun (pygame) Pin
Gulshan Negi14-Feb-23 21:34
professionalGulshan Negi14-Feb-23 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.