processing

making a “poke back” program in processing

三世轮回 提交于 2019-11-26 23:43:15
问题 x-post Processing Forum I'm trying to make a super simple sketch where the user inputs a point with mousePressed, then (after a delay), processing plots a point at a random place on the screen back at you, and the points slowly fade into a semitransparent background. Here's my code, I've tried a bunch of different ideas but nothing seems to have worked, and now I'm at a point where nothing is working at all. Any pointers? void setup() { size(600, 600); background(0); stroke(color(168, 168,

How to make a delay in processing project?

丶灬走出姿态 提交于 2019-11-26 23:42:51
问题 I'm using Java within a Processing project. I'm trying to make a delay that doesn't stop the program, but stops only a given block of code. That "processing" block of code could for example add 1 to a variable, then wait one second and then add 1 again. The problem is that delay() (see reference) stops the whole program and Thread.sleep() doesn't work in a Processing project. 回答1: You should not use delay() or Thread.sleep() in Processing unless you're already using your own threads. Don't

Can't find a way to color the Mandelbrot-set the way i'm aiming for

拟墨画扇 提交于 2019-11-26 23:13:06
I've been successful in coloring the Mandelbrot-set although I can't zoom in very far until it becomes "blurry" and the pattern stops. I fix this by increasing the max_iteration, this works but I get very few colors at *1 magnification and lot's of colors only appear when I zoom in. I understand why this happens since in a "true" Mandelbrot-set there are no colors and increasing the max_iterations just brings it closer to that. But my question is, is how do zooms such as on youtube have beautiful colors throughout the whole zooming process while still being able to zoom on for what feels like

How to retrieve more than 100 results using Twitter4j

馋奶兔 提交于 2019-11-26 14:23:48
问题 I'm using the Twitter4j library to retrieve tweets, but I'm not getting nearly enough for my purposes. Currently, I'm getting that maximum of 100 from one page. How do I implement maxId and sinceId into the below code in Processing in order to retrieve more than the 100 results from the Twitter search API? I'm totally new to Processing (and programming in general), so any bit of direction on this would be awesome! Thanks! void setup() { ConfigurationBuilder cb = new ConfigurationBuilder(); cb

Create a simple countdown in processing

血红的双手。 提交于 2019-11-26 08:37:03
问题 I have searched up so many sites on Google to try and get this to work but NO ONE seems to have this anywhere , and if they do it\'s just NOT working with my program... What I am trying to achieve is to have a player recoil that when the player gets hit, he has a \"x\" amount of time between getting hit the first time and the second time. So I have a Boolean \"hit\" = false and when he gets hit, it changes to true . Which means he can\'t get hit again until it\'s changed to false again. So I\

Can't find a way to color the Mandelbrot-set the way i'm aiming for

亡梦爱人 提交于 2019-11-26 08:35:59
问题 I\'ve been successful in coloring the Mandelbrot-set although I can\'t zoom in very far until it becomes \"blurry\" and the pattern stops. I fix this by increasing the max_iteration, this works but I get very few colors at *1 magnification and lot\'s of colors only appear when I zoom in. I understand why this happens since in a \"true\" Mandelbrot-set there are no colors and increasing the max_iterations just brings it closer to that. But my question is, is how do zooms such as on youtube

Preparing for the General Data Protection Regulati

半腔热情 提交于 2019-11-26 00:24:41
Data protection Preparing for the General Data Protection Regulation (GDPR) 12 steps to take now 1. Awareness You should make sure that decision makers and key people in your organisation are aware that the law is changing to the GDPR. They need to appreciate the impact this is likely to have. 2. Information you hold You should document what personal data you hold, where it came from and who you share it with. You may need to organise an information audit. 3. Communicating privacy information You should review your current privacy notices and put a plan in place for making any necessary

Calling awt Frame methods from subclass

妖精的绣舞 提交于 2019-11-25 22:13:17
问题 This question is about Frames, Java and Processing. This questions sounds pretty convoluted but its really not. I\'ll try keep this to a simple minimum. I\'m creating a small ball in a maze game to get my head around physics and rendering. It\'s been a good experience so far but I\'ve hit a bit of a brick wall. The general layout I decided on was to contain PApplets within a AWT Frame and have the Frame close. The reason for this is because I was told that you should only have on instance of