Click here to Skip to main content
15,887,746 members
Home / Discussions / Python
   

Python

 
AnswerRe: Closed. This question is not written in English. It is not currently accepting answers. Stack Overflow is an English-only site. If you are confident that you will be able to understand and respond to answers and comments in English, please edit y Pin
Richard MacCutchan29-Apr-23 0:20
mveRichard MacCutchan29-Apr-23 0:20 
QuestionInsensitive Match with Sensitive Substitute? Pin
Philip Derrida14-Apr-23 2:22
Philip Derrida14-Apr-23 2:22 
AnswerRe: Insensitive Match with Sensitive Substitute? Pin
OriginalGriff14-Apr-23 2:23
mveOriginalGriff14-Apr-23 2:23 
AnswerRe: Insensitive Match with Sensitive Substitute? Pin
Richard MacCutchan14-Apr-23 2:46
mveRichard MacCutchan14-Apr-23 2:46 
QuestionPartial Functions? Pin
glennPattonWork35-Apr-23 6:16
professionalglennPattonWork35-Apr-23 6:16 
AnswerRe: Partial Functions? Pin
Richard MacCutchan5-Apr-23 6:24
mveRichard MacCutchan5-Apr-23 6:24 
GeneralRe: Partial Functions? Pin
glennPattonWork35-Apr-23 21:38
professionalglennPattonWork35-Apr-23 21:38 
GeneralRe: Partial Functions? Pin
Richard MacCutchan5-Apr-23 22:52
mveRichard MacCutchan5-Apr-23 22:52 
AnswerRe: Partial Functions? Pin
code_slinger5-May-23 6:41
code_slinger5-May-23 6:41 
AnswerRe: Partial Functions? Pin
Kenneth Haugland11-May-23 0:41
mvaKenneth Haugland11-May-23 0:41 
GeneralRe: Partial Functions? Pin
glennPattonWork311-May-23 7:49
professionalglennPattonWork311-May-23 7:49 
QuestionPython Pin
RuthNathan124-Apr-23 22:05
professionalRuthNathan124-Apr-23 22:05 
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 

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.