Skip to main content
11 events
when toggle format what by license comment
Aug 8, 2014 at 1:58 comment added MestreLion Actually, i'm quite fond of your (and Ashe's) original approach of outline. It's clever, original, and one of the few that is not a variation of the "euclidean distance" approach. I may end up using outlines regardless of my color solution, as it makes visually debugging collisions and bounces much easier
Aug 8, 2014 at 0:47 comment added Pharap @MestreLion Had I known, I would have installed P2 instead (though enforcing use of parentheses is a good thing as far as I am concerned, even though I respect that many scripting language are designed to be quick and dirty). Some of the errors I was getting were 64-bit/32-bit incompatibility errors anyway XP. I'm glad to see that it appears to work. I think I (like some of the other answers) was trying to be too clever about the problem with my first answer instead of just writing something simple that works.
Aug 7, 2014 at 16:31 comment added MestreLion dl.dropboxusercontent.com/u/50766444/…
Aug 7, 2014 at 16:23 comment added MestreLion You print is different because you're using Python 3, and I'm still in Python 2. And I'm not sure if pygame was ported to Py3 yet. Bottomline: don't bother :) Question is about colors, you don't need actual balls bouncing around :)
Aug 7, 2014 at 13:52 history edited Pharap CC BY-SA 3.0
responding to new information
Aug 7, 2014 at 13:09 comment added Pharap @MestreLion Fiddled about a bit, turns out my version of python doesn't like print being called without parentheses. Fixed that, but now I've got errors from pygame not being able to find the right libraries. I'll rewrite my code to fit in with what you've got, but I can't test it until I fix pygame. I'd recommend appending that file to the question if you haven't already (in case anyone is feeling nice enough to write some python for you).
Aug 7, 2014 at 12:48 comment added Pharap @MestreLion Oh lordy, now I have to install pygame and python to test it. I've shot myself in the foot with this one XP. Lerping's easy, the lerp function in my answer is all there is to it. (Lerp means 'Linear interpolation').
Aug 7, 2014 at 12:35 comment added MestreLion I'm using pygame as a library. No Lerp, just basic RGB-HSV-CYMK conversions: pygame.org/docs/ref/color.html
Aug 7, 2014 at 12:33 comment added MestreLion I'm open to any strategy :) as for a program to mutilate, I can give you that: github.com/MestreLion/rainballs relevant lines would be 279-284
Aug 7, 2014 at 12:25 review First posts
Aug 7, 2014 at 12:39
Aug 7, 2014 at 12:21 history answered Pharap CC BY-SA 3.0