Hey,
Ive been looking at the Webcam Libraries and I still can't figure out how to capture a frame from the live stream of a webcam. I would like to capture a frame and display it in a specific area as a PImage.
Hey,
So I'm trying to make a card game and managed to make a little array that grabs PImages and randomises them so when I click It shows a different card.
Could you guys help me with randoming the array and having no repetitions of cards? I'm really stuck :(
int numCards = 12; //number of images
String[] imageNames = { "Aclubs.png", "2clubs.png", "3clubs.png","4clubs.png", "5clubs.png", "6clubs.png", "7clubs.png", "8clubs.png", "9clubs.png", "Jclubs.png", "Qclubs.png", "Kclubs.png"};
PImage[] images = new PImage[imageNames.length];
I want to make a card game on processing but I'm having some trouble finding a way to shuffle a deck. I had an Idea of using an Array [51] then assigning each one to a p.image for the card? is that right or is there an easier way to do it?