Return to Snippet

Revision: 11856
at March 2, 2009 03:51 by dx0ne


Updated Code
void mouseReleased() {
  saveFrame(gimme_name("myProject_"));
};

String gimme_name(String begin)
{
  String name = begin;
  name+=String.valueOf(year());
  name+=".";
  if(month()<10) name+="0";
  name+=String.valueOf(month());
  name+=".";
  if(day()<10) name+="0";
  name+=String.valueOf(day());
  name+="_";
  if(hour()<10) name+="0";
  name+=String.valueOf(hour());
  name+=".";
  if(minute()<10) name+="0";
  name+=String.valueOf(minute());
  name+=".";
  if(second()<10) name+="0";
  name+=String.valueOf(second());
  name+=".png";
  return name;
}

Revision: 11855
at February 22, 2009 15:55 by dx0ne


Updated Code
void mouseReleased() {
  saveFrame(gimme_name("myProject_"));
};

String gimme_name(String begin)
{
  String name = begin;
  name+=String.valueOf(year());
  name+="_";
  name+=String.valueOf(month());
  name+="_";
  name+=String.valueOf(day());
  name+="_";
  name+="_";
  name+=String.valueOf(hour());
  name+="_";
  name+=String.valueOf(minute());
  name+="_";
  name+=String.valueOf(second());
  name+=".png";
  return name;
}

Revision: 11854
at February 22, 2009 15:22 by dx0ne


Initial Code
void mouseReleased() {
  saveFrame(gimme_name("myProject_"));
};

String gimme_name(String begin)
{
  String name = begin;
  name+=String.valueOf(year());
  name+=String.valueOf(month());
  name+=String.valueOf(day());
  name+=String.valueOf(hour());
  name+=String.valueOf(minute());
  name+=String.valueOf(second());
  name+=".png";
  return name;
}

Initial URL

                                

Initial Description

                                

Initial Title
Processing: onClick screenshot

Initial Tags

                                

Initial Language
Processing