RNAYYAR ABSTRACT CLOCK

 

It took me ages to come up with an idea for this. I really didn’t want to do something that looked like an actual clock that had hands or increasing bars or whatnot, so I opted for the “digital” route…

Essentially, it’s game day and we have our blimp here making his 1 minute rounds. The score for team 1 (HOME) increases by 1 point every minute. And our lovely fangirl has her eye on a different player every hour.

Coding this wasn’t all too difficult, just really time consuming and somewhat tedious because of all the shapes. It was pretty entertaining though 🙂

sketch

/* Rhea Nayyar
rnayyar@andrew.cmu.edu
Section C
Project 06-c; abstract clock
*/

function setup() {
    createCanvas(500, 500);
    frameRate(5);
    
     background('LightPink');
}

function draw() {
   
angleMode(DEGREES);

var h = hour(); 
var x = (h%12); //enabling 12 hr clock
var m = minute();
var s = (second()*6);

 background('LightBlue'); //sky

 //blimp (sec)
    stroke('Black');
    fill('DimGrey');
    rect(s+5,58, 15, 10);
    rect(s-60, 40, 4, 3);
    fill(random(200,255));
    noStroke();
    ellipse(s-60,41,3,8);
    fill('ForestGreen');
    stroke('DarkGreen');
    quad(s-50, 30, s-40, 35, s-46, 20, s-55, 15);
    quad(s-50, 50, s-40, 50, s-46, 60, s-55, 65);
    fill('Lime');
    stroke('ForestGreen');
    ellipse(s,40, 110, 45);


//scoreBoard (minute)
 stroke('Black');
 fill(50);
 rect(10,140,480,400);
 fill('Black');
 rect( 15, 145, 470, 50);
 fill('Azure');
 textSize(35);
 textFont('Lucinda');
 text("    S C O R E   B O A R D", 38, 185);
  for(var c = 0; c < 47; c ++){
        for( var r = 0; r<45; r++){
fill(35);
ellipse(20 + c*10, 200 + r*10, 5, 5);
}
}
fill('Black');
rect(45, 250, 170, 100);
rect(290, 250, 170, 100);
fill('Yellow');
textFont('Courier');
textSize(70);
text(" " + m, 50, 320); //minute
text(" " + m-8, 330, 320); //random number that changes. I'd feel bad if the other team was stagnant :)
fill('SlateGrey');
rect(65, 360, 140, 30);
rect(315, 360, 140, 30);
fill('Yellow');
textSize(20);
textFont('Verdana');
text("T/1: HOME", 90,385);
text("T/2: AWAY", 330,385);


//fangirl
    fill('SaddleBrown');
    stroke('Black');
    quad(370,307, 427, 307, 440, 400, 360, 400);


    fill('LavenderBlush');
    noStroke();
    rect(390,360,23,40);
    fill('DarkSalmon');
    triangle(380,370, 420, 370, 400, 393);
    fill('LavenderBlush');
    ellipse(400,350,50,65);
    fill('MistyRose');
    stroke('RosyBrown');
    strokeWeight(.3);
    ellipse(400, 355, 7, 15);
    noStroke();
    ellipse(400,360,10,5);
    fill('Maroon');
    ellipse(400, 372, 10, 5);
    fill('White');
    stroke('DimGrey');
    strokeWeight(1);
    ellipse(390,345, 8, 5);
     ellipse(410,345, 8, 5);
     fill('Indigo');
     ellipse(390,345,4,4);
     ellipse(410,345,4,4);
     fill('Black');
     ellipse(386, 355, 11,2);
     ellipse(414, 355, 11,2);
      fill('SaddleBrown');
    stroke('Black');
    quad(375,310, 420, 310, 430, 340, 370, 340);
    fill('Plum');
    quad(355,400, 445, 400, 425, 500, 375,500);
    rect(350,290,20,120,4);
    rect(430,290,20,120,4);
    noStroke();
    fill('LavenderBlush');
    ellipse(355,285, 20,20);
     ellipse(440,285, 20,20);

     //Fan sign (hour)
     fill('Tomato');
     rect(340,180,130,100);
     fill('LavenderBlush');
    ellipse(360,280, 6,20);
     ellipse(435,280, 6,20);
     fill('Black');
     textFont('Impact');
     textSize(36);
     text("I LOVE \n  #" + x, 360,230);

}

Project 6 – Alison Hoffman

For this project I wanted to create an abstract clock that still maintained intuitive function for the user. I stuck with simple forms and color in order to make the representation of time more apparent. The outer circle represents the hour of the day. The weight of the circle changes based on the hour, so, for example, the weight of the circle is greater at 6 than at 2. The shade of the background is also based on the hour of the day such that  the background is lighter at 6 am than at 6pm. The middle circle represents the minute of the hour. Like with the hour, the weight of the circle increases with the minutes passed. The innermost circle represents the seconds in the minute. With each second passed, the arc of the circle gets bigger and the color of the stroke gets darker.project-6-sketch

 

 

 

sketch

//Alison Hoffman
//section D 
//achoffma@andrew.cmu.edu
//Project 06 - Abstract Clock

var bg_color = 0; //intialize color to white

function setup() {
    createCanvas(600,600);
}

function draw() {
    var h = hour();
    var bg_color = map(h,0,23,255,0); // map the hour of day to the color of the canvas
    background(bg_color); // the later the hour the darker the background

    //hour circle 
    var h_stroke = h*4; 
    if (h > 12){        //since hour() works from 0-23, this makes it so noon and midnight are the same size, 
        h_stroke = h*2;
    } else if (h==0){
        h_stroke == 24;
    }
    noFill();
    stroke(106,193,196);
    strokeWeight(h_stroke); //maps hour of the day to the weight of the stroke
    ellipse(width/2,height/2,width/4*3);

    // minute circle
    var m = minute();
    var m_stroke = m;
    stroke(69,152,155);
    strokeWeight(m_stroke); //maps minute to the weight of the stroke
    ellipse(width/2,height/2, width/2);

    //second circle
    var s = second();
    var s_map = map(s,0,59,0,359); // map seconds to the degrees of a circle 
    s_map = radians(s_map); // turn degrees into radians
    stroke(197,221,221); 
    strokeWeight(12);
    ellipse(width/2,height/2,width/4); // circle that is always visible
    noFill();
    
    var sec_colR = map(s,0,59,234,0);
    var sec_colG = map(s,0,59,255,127);
    var sec_colB = map(s,0,59,255,130);

    push();
    translate(width/2,height/2);
    rotate(radians(270));
    stroke(sec_colR,sec_colG,sec_colB);
    strokeCap(SQUARE);
    arc(0,0,width/4,height/4,0,s_map);
    pop();

}

Project Week 6 – Now That’s What I Call Music

clock

//Owen Fox
//Section C
//olf@andrew.cmu.edu
//Abstract clock

//each of these arrays contains the top 60 hit songs from 1992 to 2015
var hits92 = ["End Of The Road by Boyz II Men", "Baby Got Back by Sir Mix Alot", "Jump by Kris Kross"];

hits92.splice(3,0,"Save The Best For Last by Vanessa Williams", "Baby-Baby-Baby by TLC", "Tears In Heaven by Eric Clapton");
hits92.splice(6,0,"My Lovin (Youre Never Gonna Get It) by En Vogue", "Under The Bridge by Red Hot Chili Peppers", "All For Love by Color Me Badd");
hits92.splice(9,0,"Just Another Day by Jon Secada", "I Love Your Smile by Shanice", "To Be With You by Mr Big");
hits92.splice(12,0,"I'm Too Sexy by Right Said Fred", "Black Or White by Michael Jackson", "Achy Breaky Heart by Billy Ray Cyrus");
hits92.splice(15,0,"Ill Be There by Mariah Carey", "November Rain by Guns N Roses", "Life Is A Highway by Tom Cochrane");
hits92.splice(18,0,"Remember The Time by Michael Jackson", "Finally by CeCe Peniston", "This Used To Be My Playground by Madonna");
hits92.splice(21,0,"Sometimes Love Just Aint Enough by Patty Smyth", "Cant Let Go by Mariah Carey", "Jump Around by House Of Pain");
hits92.splice(24,0,"Diamonds and Pearls by Prince and The NPG", "Dont Let The Sun Go Down On Me by George Michael and Elton John", "Masterpiece by Atlantic Starr");
hits92.splice(27,0,"If You Asked Me To by Celine Dion", "Giving Him Something He Can Feel by En Vogue", "Live and Learn by Joe Public");
hits92.splice(30,0,"Come and Talk To Me by Jodeci", "Smells Like Teen Spirit by Nirvana", "Humpin Around by Bobby Brown");
hits92.splice(33,0,"Damn I Wish I Was Your Lover by Sophie B Hawkins", "Tell Me What You Want Me To Do by Teven Campbell", "Aint Too Proud To Beg by TLC");
hits92.splice(36,0,"Its So Hard To Say Goodbye To Yesterday by Boyz II Men", "Move This by Technotronic", "Bohemian Rhapsody by Queen");
hits92.splice(39,0,"Tennessee by Arrested Development", "The Best Things In Life Are Free by Luther Vandross and Janet Jackson", "Make It Happen by Mariah Carey");
hits92.splice(42,0,"The One by Elton John", "Set Adrift On Memory Bliss by PM Dawn", "Stay by Shakespears Sister");
hits92.splice(45,0,"Too Legit To Quit by Hammer", "Please Dont Go by KWS", "Breakin My Heart (Pretty Brown Eyes) by Mint Condition");
hits92.splice(48,0,"Wishing On A Star by Cover Girls", "Shes Playing Hard To Get by Hi Five", "Id Die Without You by PM Dawn");
hits92.splice(51,0,"Good For Me by Amy Grant", "All I Want by Toad The Wet Sprocket", "When A Man Loves A Woman by Michael Bolton");
hits92.splice(54,0,"I Cant Dance by Genesis", "Hazard by Richard Marx", "Mysterious Ways by U2");
hits92.splice(57,0,"Too Funky by George Michael", "How Do You Talk To An Angel by Heights","One by U2");

var hits93 = ["Real Love by Mary J. Blige","Here We Go Again! by Portrait","Cryin' by Aerosmith"];

hits93.splice(3,0,"I Will Always Love You by Whitney Houston","Whoomp! (There It Is) by Tag Team","Can't Help Falling In Love by UB40");
hits93.splice(6,0,"That's The Way Love Goes by Janet Jackson","Freak by Silk","Weak by SWV");
hits93.splice(9,0,"If I Ever Fall In Love by Shai","Dreamlover by Mariah Carey","Rump Shaker by Wreckx-N-Effect");
hits93.splice(12,0,"Informer by Snow","Nuthin' But A G Thang by Dr. Dre","In The Still Of The Nite by Boyz II Men");
hits93.splice(15,0,"Don't Walk Away by Jade","Knockin' Da Boots by H-Town","Lately by Jodeci");
hits93.splice(18,0,"Dazzey Duks by Duice","Show Me Love by Robin S.","A Whole New World by Peabo Bryson and Regina Belle");
hits93.splice(21,0,"If by Janet Jackson","I'm So Into You by SWV","Love Is by Vanessa Willlams and Brian Mcknight");
hits93.splice(24,0,"Runaway Train by Soul Asylum","I'll Never Get Over You (Getting Over Me) by Expose","Ditty by Paperboy");
hits93.splice(27,0,"Rhythm Is A Dancer by Snap","The River Of Dreams by Billy Joel","I'm Gonna Be (500 Miles) by Proclaimers");
hits93.splice(30,0,"Two Princes by Spin Doctors","Right Here (Human Nature)-Downtown by SWV","I Have Nothing by Whitney Houston");
hits93.splice(33,0,"Mr. Wendal by Arrested Development","Have I Told You Lately by Rod Stewart","Saving Forever For You by Shanice");
hits93.splice(36,0,"Ordinary World by Duran Duran","If I Had No Loot by Tony! Toni! Tone!","I'd Do Anything For Love  by Meat Loaf");
hits93.splice(39,0,"Slam by Onyx","Looking Through Patient Eyes by P.M. Dawn","I'm Every Woman by Whitney Houston");
hits93.splice(42,0,"Baby I'm Yours by Shai","Come Undone by Duran Duran","I Don't Wanna Fight by Tina Turner");
hits93.splice(45,0,"I'd Die Without You by P.M. Dawn","Whoot There It Is by 95 South","Hip Hop Hooray by Naughty By Nature");
hits93.splice(48,0,"Another Sad Love Song by Toni Braxton","Will You Be There by Michael Jackson","Comforter by Shil");
hits93.splice(51,0,"Good Enough by Bobby Brown","What's Up by 4 Non Blondes","All That She Wants by Ace Of Base");
hits93.splice(54,0,"7 by Prince and The New Power Generation","Dre Day by Dr. Dre","One Last Cry by Brian McKnight");
hits93.splice(57,0,"Just Kickin' It by Xscape","I Get Around by 2Pac","Bed Of Roses by Bon Jovi");

var hits94 = ["I Will Always Love You by Whitney Houston","Whoomp! (There It Is) by Tag Team","Can't Help Falling In Love by UB40"];

hits94.splice(3,0,"That's The Way Love Goes by Janet Jackson","Freak by Silk","Weak by SWV");
hits94.splice(6,0,"If I Ever Fall In Love by Shai","Dreamlover by Mariah Carey","Rump Shaker by Wreckx-N-Effect");
hits94.splice(9,0,"Informer by Snow","Nuthin' But A G Thang by Dr. Dre","In The Still Of The Nite by Boyz II Men");
hits94.splice(12,0,"Don't Walk Away by Jade","Knockin' Da Boots by H-Town","Lately by Jodeci");
hits94.splice(15,0,"Dazzey Duks by Duice","Show Me Love by Robin S.","A Whole New World  by Peabo Bryson and Regina Belle");
hits94.splice(18,0,"If by Janet Jackson","I'm So Into You by SWV","Love Is by Vanessa Willlams and Brian Mcknight");
hits94.splice(21,0,	"Runaway Train by Soul Asylum","I'll Never Get Over You (Getting Over Me) by Expose","Ditty by Paperboy");
hits94.splice(24,0,"Rhythm Is A Dancer by Snap","The River Of Dreams by Billy Joel","I'm Gonna Be (500 Miles) by Proclaimers");
hits94.splice(27,0,"Two Princes by Spin Doctors","Right Here (Human Nature)-Downtown by SWV","I Have Nothing by Whitney Houston");
hits94.splice(30,0,"Mr. Wendal by Arrested Development","Have I Told You Lately by Rod Stewart","Saving Forever For You by Shanice");
hits94.splice(33,0,"Ordinary World by Duran Duran","If I Had No Loot by Tony! Toni! Tone!","I'd Do Anything For Love by Meat Loaf");
hits94.splice(36,0,"Slam by Onyx","Looking Through Patient Eyes by P.M. Dawn","I'm Every Woman by Whitney Houston");
hits94.splice(39,0,"Baby I'm Yours by Shai","Come Undone by Duran Duran","I Don't Wanna Fight by Tina Turner");
hits94.splice(42,0,"I'd Die Without You by P.M. Dawn","Whoot There It Is by 95 South","Hip Hop Hooray by Naughty By Nature");
hits94.splice(45,0,"Another Sad Love Song by Toni Braxton","Will You Be There by Michael Jackson","Comforter by Shil");
hits94.splice(48,0,"Good Enough by Bobby Brown","What's Up by 4 Non Blondes","All That She Wants by Ace Of Base");
hits94.splice(51,0,"7 by Prince and The New Power Generation","Dre Day by Dr. Dre","One Last Cry  by Brian McKnight");
hits94.splice(54,0,"Just Kickin' It by Xscape","I Get Around by 2Pac","Bed Of Roses by Bon Jovi");
hits94.splice(57,0,"Real Love by Mary J. Blige","Here We Go Again! by Portrait","Cryin' by Aerosmith");

var hits95 = ["Gangsta’s Paradise by Coolio","Waterfalls by TLC","Creep by TLC"]

hits95.splice(3,0,"Kiss From A Rose by Seal","On Bended Knee by Boyz II Men","Another Night by Real McCoy");
hits95.splice(6,0,"Fantasy by Mariah Carey","Take A Bow by Madonna","Don’t Take It Personal (Just One Of Dem Days) by Monica");
hits95.splice(9,0,"This Is How We Do It by Montell Jordan","I Know by Dionne Farris","Water Runs Dry by Boyz II Men"	);
hits95.splice(12,0,"Freak Like Me by Adina Howard","Run-Around by Blues Traveler","I Can Love You Like That by All-4-One");
hits95.splice(15,0,"Have You Ever Really Loved A Woman? by Bryan Adams","Always by Bon Jovi","Boombastic / In The Summertime by Shaggy");
hits95.splice(18,0,"Total Eclipse Of The Heart by Nicki French","You Gotta Be by Des’ree","You Are Not Alone by Michael Jackson");
hits95.splice(21,0,"Hold My Hand by Hootie and The Blowfish","One More Chance-Stay With Me by Notorious B.I.G.","Here Comes The Hotstepper by Ini Kamoze");
hits95.splice(24,0,"Candy Rain by Soul For Real","Let Her Cry by Hootie and The Blowfish","I Believe by Blessid Union Of Souls");
hits95.splice(27,0,"Red Light Special by TLC","Runaway by Janet Jackson","Strong Enough by Sheryl Crow");
hits95.splice(30,0,"Colors Of The Wind by Vanessa Williams","Someone To Love by Jon B.","Only Wanna Be With You by Hootie and The Blowfish");
hits95.splice(33,0,"If You Love Me by Brownstone","In The House Of Stone And Light by Martin Page","I Got 5 On It by Luniz");
hits95.splice(36,0,"Baby by Brandy","Run Away by Real McCoy","As I Lay Me Down by Sophie B. Hawkins");
hits95.splice(39,0,"He’s Mine by Mokenstef","December by Collective Soul","I’ll Be There For You-You’re All I Need To Get By by Method Man-Mary J. Blige");
hits95.splice(42,0,"Shy Guy by Diana King","I’m The Only One by Melissa Etheridge","Every Little Thing I Do by Soul For Real");
hits95.splice(45,0,"Before I Let You Go by BLACKstreet","Big Poppa / Warning by Notorious B.I.G.","Sukiyaki by 4 P.M.");
hits95.splice(48,0,"I Wanna Be Down by Brandy","I’ll Make Love To You by Boyz II Men","Dear Mama / Old School by 2Pac");
hits95.splice(51,0,"Hold On by Jamie Walters","Keep Their Heads Ringin’ by Dr. Dre","The Rhythm Of The Night by Corona");
hits95.splice(54,0,"Roll To Me by Del Amitri","Scream / Childhood by Michael Jackson and Janet Jackson","Freek’n You by Jodeci");
hits95.splice(57,0,"I Wish by Skee-lo","Believe by Elton John","Carnival by Natalie Merchant");

var hits96 = ["Macarena (Bayside Boys Mix) by Los Del Rio","One Sweet Day by Mariah Carey and Boyz II Men","Because You Loved Me by Celine Dion"];

hits96.splice(3,0,"Nobody Knows by Tony Rich Project","Always Be My Baby by Mariah Carey","Give Me One Reason by Tracy Chapman");
hits96.splice(6,0,"Tha Crossroads by Bone Thugs-N-Harmony","I Love You Always Forever by Donna Lewis","You’re Makin’ Me High / Let It Flow by Toni Braxton");
hits96.splice(9,0,"Twisted by Keith Sweat","C’mon N’ Ride It (The Train) by Quad City Dj’s","Missing by Everything But The Girl");
hits96.splice(12,0,"Ironic by Alanis Morissette","Exhale (Shoop Shoop) by Whitney Houston","Follow You Down / Til I Hear It From You by Gin Blossoms");
hits96.splice(15,0,"Sittin’ Up In My Room by Brandy","How Do U Want It / California Love by 2Pac","It’s All Coming Back To Me Now by Celine Dion");
hits96.splice(18,0,"Change The World by Eric Clapton","Hey Lover by LL Cool J","Loungin by LL Cool J");
hits96.splice(21,0,"Insensitive by Jann Arden","Be My Lover by La Bouche","Name by Goo Goo Dolls");
hits96.splice(24,0,"Who Will Save Your Soul by Jewel","Where Do You Go by No Mercy","I Can’t Sleep Baby (If I) by R. Kelly");
hits96.splice(27,0,"Counting Blue Cars by Dishwalla","You Learn / You Oughta Know by Alanis Morissette","One Of Us by Joan Osborne");
hits96.splice(30,0,"Wonder by Natalie Merchant","Not Gon’ Cry by Mary J. Blige","Gangsta’s Paradise by Coolio");
hits96.splice(33,0,"Only You by 112 feat. The Notorious B.I.G.","Down Low (Nobody Has To Know) by R. Kelly","You’re The One by SWV");
hits96.splice(36,0,"Sweet Dreams by La Bouche","Before You Walk Out Of My Life / Like This And Like That by Monica","Breakfast At Tiffany’s by Deep Blue Something");
hits96.splice(39,0,"1, 2, 3, 4 (Sumpin’ New) by Coolio","The World I Know by Collective Soul","No Diggity by BLACKstreet (feat. Dr. Dre)");
hits96.splice(42,0,"Anything by 3t","1979 by The Smashing Pumpkins","Diggin’ On You by TLC");
hits96.splice(45,0,"Why I Love You So Much / Ain’t Nobody by Monica","Kissin’ You by Total","Count On Me by Whitney Houston and Cece Winans");
hits96.splice(48,0,"Fantasy by Mariah Carey","Time by Hootie and The Blowfish","You’ll See by Madonna");
hits96.splice(51,0,"Last Night by Az Yet","Mouth by Merril Bainbridge","The Earth, The Sun, The Rain by Color Me Badd");
hits96.splice(54,0,"All The Things (Your Man Won’t Do) by Joe","Wonderwall by Oasis","Woo-hah!! Got You All In Check / Everything Remains Raw by Busta Rhymes");
hits96.splice(57,0,"Tell Me by Groove Theory","Elevators (Me & You) by Outkast","Hook by Blues Traveler");

var hits97 = ["Candle In The Wind 1997 by Elton John","Foolish Games / You Were Meant For Me by Jewel","I’ll Be Missing You by Puff Daddy and Faith Evans"];

hits97.splice(3,0,"Un-Break My Heart by Toni Braxton","Can’t Nobody Hold Me Down by Puff Daddy","I Believe I Can Fly by R. Kelly");
hits97.splice(6,0,"Don’t Let Go (Love) by En Vogue","Return Of The Mack by Mark Morrison","How Do I Live by LeAnn Rimes");
hits97.splice(9,0,"Wannabe by Spice Girls","Quit Playing Games (With My Heart) by Backstreet Boys","MMMBop by Hanson");
hits97.splice(12,0,"For You I Will by Monica","You Make Me Wanna… by Usher","Bitch by Meredith Brooks");
hits97.splice(15,0,"Nobody by Keith Sweat","Semi-Charmed Life by Third Eye Blind","Barely Breathing by Duncan Sheik");
hits97.splice(18,0,"Hard To Say I’m Sorry by Az Yet feat. Peter Cetera","Mo Money Mo Problems by Notorious B.I.G.","The Freshmen by Verve Pipe");
hits97.splice(21,0,"I Want You by Savage Garden","No Diggity by BLACKstreet feat. Dr. Dre","I Belong To You (Every Time I See Your Face) by Rome");
hits97.splice(24,0,"Hypnotize by Notorious B.I.G.","Every Time I Close My Eyes by Babyface","In My Bed by Dru Hill");
hits97.splice(27,0,"Say You’ll Be There by Spice Girls","Do You Know (What It Takes) by Robyn","4 Seasons Of Loneliness by Boyz II Men");
hits97.splice(30,0,"G.H.E.T.T.O.U.T. by Changing Faces","Honey by Mariah Carey","I Believe In You And Me by Whitney Houston");
hits97.splice(33,0,"Da’ Dip by Freaknasty","2 Become 1 by Spice Girls","All For You by Sister Hazel");
hits97.splice(36,0,"Cupid by 112","Where Have All The Cowboys Gone? by Paula Cole","Sunny Came Home by Shawn Colvin");
hits97.splice(39,0,"It’s Your Love by Tim McGraw and Faith Hill","Ooh Aah… Just A Little Bit by Gina G","Mouth by Merril Bainbridge");
hits97.splice(42,0,"All Cried Out by Allure feat. 112","I’m Still In Love With You by New Edition","Invisible Man by 98 Degrees");
hits97.splice(45,0,"Not Tonight by Lil’ Kim","Look Into My Eyes by Bone Thugs-N-Harmony","Get It Together by 702");
hits97.splice(48,0,"All By Myself by Celine Dion","It’s All Coming Back To Me Now by Celine Dion","My Love Is The Shhh! by Somethin’ For The People");
hits97.splice(51,0,"Where Do You Go by No Mercy","I Finally Found Someone by Barbra Streisand and Bryan Adams","I’ll Be by Foxy Brown feat. Jay-Z");
hits97.splice(54,0,"If It Makes You Happy by Sheryl Crow","Never Make A Promise by Dru Hill","When You Love A Woman by Journey");
hits97.splice(57,0,"Up Jumps Da Boogie by Magoo And Timbaland","I Don’t Want To / I Love Me Some Him by Toni Braxton","Everyday Is A Winding Road by Sheryl Crow");

var hits98 = [ "Too Close by Next","The Boy Is Mine by Brandy and Monica","You’re Still The One by Shania Twain" ];

hits98.splice(3,0, "Truly Madly Deeply by Savage Garden","How Do I Live by LeAnn Rimes","Together Again by Janet" );
hits98.splice(6,0, "All My Life by K-Ci and JoJo","Candle In The Wind 1997 by Elton John","Nice & Slow by Usher" );
hits98.splice(9,0, "I Don’t Want To Wait by Paula Cole","How’s It Going To Be by Third Eye Blind","No, No, No by Destiny’s Child" );
hits98.splice(12,0, "My Heart Will Go On by Celine Dion","Gettin’ Jiggy Wit It by Will Smith","You Make Me Wanna… by Usher" );
hits98.splice(15,0, "My Way by Usher","My All by Mariah Carey","The First Night by Monica" );
hits98.splice(18,0, "Been Around The World by Puff Daddy and The Family","Adia by Sarah McLachlan","Crush by Jennifer Paige" );
hits98.splice(21,0, "Everybody (Backstreet’s Back) by Backstreet Boys","I Don’t Want To Miss A Thing by Aerosmith","Body Bumpin Yippie-Yi-Yo by Public Announcement" );
hits98.splice(24,0, "This Kiss by Faith Hill","I Don’t Ever Want To See You Again by Uncle Sam","Let’s Ride by Montell Jordan" );
hits98.splice(27,0, "Sex And Candy by Marcy Playground","Show Me Love by Robyn","A Song For Mama by Boyz II Men" );
hits98.splice(30,0, "What You Want by Mase","Frozen by Madonna","Gone Till November by Wyclef Jean" );
hits98.splice(33,0, "My Body by Lsg","Tubthumping by Chumbawamba","Deja Vu (Uptown Baby) by Lord Tariq and Peter Gunz" );
hits98.splice(36,0, "I Want You Back by ‘N Sync","When The Lights Go Out by Five","They Don’t Know by Jon B." );
hits98.splice(39,0, "Make Em’ Say Uhh! by Master P","Make It Hot by Nicole feat. Missy “Misdemeanor” Elliott and Mocha","Never Ever by All Saints" );
hits98.splice(42,0, "I Get Lonely by Janet","Feel So Good by Mase","Say It by Voices Of Theory" );
hits98.splice(45,0, "Kiss The Rain by Billie Myers","Come With Me by Puff Daddy","Romeo And Juliet by Sylk-E Fyne" );
hits98.splice(48,0, "It’s All About Me by Mya and Sisqo","I Will Come To You by Hanson","One Week by Barenaked Ladies" );
hits98.splice(51,0, "Swing My Way by K.P. and Envyi","The Arms Of The One Who Loves You by Xscape","My Love Is The Shhh! by Somethin’ For The People" );
hits98.splice(54,0, "Daydreamin’ by Tatyana Ali","We’re Not Making Love No More by Dru Hill","Semi-Charmed Life by Third Eye Blind" );
hits98.splice(57,0, "I Do by Lisa Loeb","Lookin’ At Me by Mase","Looking Through Your Eyes by LeAnn Rimes" );

var hits99 = ["Believe by Cher","No Scrubs by TLC","Angel Of Mine by Monica"];

hits99.splice(3,0,"Heartbreak Hotel by Whitney Houston","…Baby One More Time by Britney Spears","Kiss Me by Sixpence None The Richer");
hits99.splice(6,0,"Genie In A Bottle by Christina Aguilera","Every Morning by Sugar Ray","Nobody’s Supposed To Be Here by Deborah Cox");
hits99.splice(9,0,"Livin’ La Vida Loca by Ricky Martin","Where My Girls At? by 702","If You Had My Love by Jennifer Lopez");
hits99.splice(12,0,"Slide by Goo Goo Dolls","Have You Ever? by Brandy","I Want It That Way by Backstreet Boys");
hits99.splice(15,0,"I’m Your Angel by R. Kelly and Celine Dion","All Star by Smash Mouth","Angel by Sarah McLachlan");
hits99.splice(18,0,"Smooth by Santana feat. Rob Thomas","Unpretty by TLC","Bills, Bills, Bills by Destiny’s Child");
hits99.splice(21,0,"Save Tonight by Eagle-Eye Cherry","Last Kiss by Pearl Jam","Fortunate by Maxwell");
hits99.splice(24,0,"All I Have To Give by Backstreet Boys","Bailamos by Enrique Iglesias","What’s It Gonna Be?! by Busta Rhymes feat. Janet");
hits99.splice(27,0,"What It’s Like by Everlast","Fly Away by Lenny Kravitz","Someday by Sugar Ray");
hits99.splice(30,0,"Lately by Divine","That Don’t Impress Me Much by Shania Twain","Wild Wild West by Will Smith feat. Dru Hill and Kool Moe Dee");
hits99.splice(33,0,"Scar Tissue by Red Hot Chili Peppers","Heartbreaker by Mariah Carey feat. Jay-Z","I Still Believe by Mariah Carey");
hits99.splice(36,0,"The Hardest Thing by 98 Degrees","Summer Girls by LFO","Can I Get A… by Jay-Z feat. Amil (Of Major Coinz) and Ja");
hits99.splice(39,0,"Jumper by Third Eye Blind","Doo Wop (That Thing) by Lauryn Hill","Mambo No. 5 (A Little Bit Of…) by Lou Bega");
hits99.splice(42,0,"Sweet Lady by Tyrese","It’s Not Right But It’s Okay by Whitney Houston","(God Must Have Spent) A Little More Time On You by ‘N Sync");
hits99.splice(45,0,"Lullaby by Shawn Mullins","Anywhere by 112 feat. Lil’Z","Tell Me It’s Real by K-Ci and JoJo");
hits99.splice(48,0,"Back 2 Good by Matchbox 20","808 by Blaque","She’s So High by Tal Bachman");
hits99.splice(51,0,"She’s All I Ever Had by Ricky Martin","Miami by Will Smith","Hands by Jewel");
hits99.splice(54,0,"Who Dat by JT Money feat. Sole","Please Remember Me by Tim McGraw","From This Moment On by Shania Twain");
hits99.splice(57,0,"Love Like This by Faith Evans","You by Jesse Powell","Trippin’ by Total feat. Missy Elliott");

var hits00 = ["Breathe by Faith Hill","Smooth by Santana feat. Rob Thomas","Maria Maria by Santana feat. The Product GandB"];

hits00.splice(3,0,"I Wanna Know by Joe","Everything You Want by Vertical Horizon","Say My Name by Destiny’s Child");
hits00.splice(6,0,"I Knew I Loved You by Savage Garden","Amazed by Lonestar","Bent by matchbox twenty");
hits00.splice(9,0,"He Wasn’t Man Enough by Toni Braxton","Higher by Creed","Try Again by Aaliyah");
hits00.splice(12,0,"Jumpin Jumpin’ by Destiny’s Child","Thong Song by Sisqo","Kryptonite by 3 Doors Down");
hits00.splice(15,0,"There You Go by Pink","Music by Madonna","Doesn’t Really Matter by Janet");
hits00.splice(18,0,"What A Girl Wants by Christina Aguilera","Back At One by Brian McKnight","Bye Bye Bye by ‘N Sync");
hits00.splice(21,0,"You Sang To Me by Marc Anthony","I Need To Know by Marc Anthony","Get It On Tonite by Montell Jordan");
hits00.splice(24,0,"Incomplete by Sisqo","I Try by Macy Gray","It’s Gonna Be Me by ‘N Sync");
hits00.splice(27,0,"That’s The Way It Is by Celine Dion","(Hot S**T) Country Grammar by Nelly","Bring It All To Me by Blaque");
hits00.splice(30,0,"Show Me The Meaning Of Being Lonely by Backstreet Boys","Hot Boyz by Missy Elliott feat. Nas, EVE and Q-Tip","Back Here by BBMak");
hits00.splice(33,0,"It Feels So Good by Sonique","Absolutely (Story Of A Girl) by Nine Days","With Arms Wide Open by Creed");
hits00.splice(36,0,"Be With You by Enrique Iglesias","Come On Over Baby (All I Want Is You) by Christina Aguilera","No More by Ruff Endz");
hits00.splice(39,0,"All The Small Things by Blink 182","The Way You Love Me by Faith Hill","I Turn To You by Christina Aguilera");
hits00.splice(42,0,"Never Let You Go by Third Eye Blind","I Need You by LeAnn Rimes","Thank God I Found You by Mariah Carey feat. Joe and 98 Degrees");
hits00.splice(45,0,"Let’s Get Married by Jagged Edge","My Love Is Your Love by Whitney Houston","Then The Morning Comes by Smash Mouth");
hits00.splice(48,0,"Blue (Da Ba Dee) by iffel 65","Desert Rose by Sting feat. Cheb Mami","The Real Slim Shady by Eminem");
hits00.splice(51,0,"Most Girls by Pink","Wifey by Next","Wonderful by Everclear");
hits00.splice(54,0,"Oops!… I Did It Again by Britney Spears","I Wanna Love You Forever by Jessica Simpson","Give Me Just One Night (Una Noche ) by 98 Degrees");
hits00.splice(57,0,"Take A Picture by Filter","Otherside by Red Hot Chili Peppers","Big Pimpin’ by Jay-Z feat. UGK");

var hits01 = ["Hanging By A Moment by Lifehouse","Fallin’ by Alicia Keys","All For You by Janet"];

hits01.splice(3,0,"Drops Of Jupiter (Tell Me) by Train","I’m Real by Jennifer Lopez feat. Ja Rule","If You’re Gone by matchbox twenty");
hits01.splice(6,0,"Let Me Blow Ya Mind by Eve feat. Gwen Stefani","Thank You by Dido","Again by Lenny Kravitz");
hits01.splice(9,0,"Independent Women Part I by Destiny’s Child","Hit ‘Em Up Style (Oops!) by Blu Cantrell","It Wasn’t Me by Shaggy feat. Ricardo “RikRok” Ducent");
hits01.splice(12,0,"Stutter by Joe feat. Mystikal","It’s Been Awhile by Staind","U Remind Me by Usher");
hits01.splice(15,0,"Where The Party At by Jagged Edge With Nelly","Angel by Shaggy feat. Rayvon","Ride Wit Me by Nelly feat. City Spud");
hits01.splice(18,0,"Follow Me by Uncle Kracker","Peaches & Cream by 112","Drive by Incubus");
hits01.splice(21,0,"What Would You Do? by City High","Survivor by Destiny’s Child","Lady Marmalade by Christina Aguilera, Lil’ Kim, Mya and Pink");
hits01.splice(24,0,"Ms. Jackson by Outkast","Love Don’t Cost A Thing by Jennifer Lopez","The Way You Love Me by Faith Hill");
hits01.splice(27,0,"He Loves U Not by Dream","Butterfly by Crazy Town","Put It On Me by Ja Rule feat. Lil’ Mo and Vita");
hits01.splice(30,0,"Family Affair by Mary J. Blige","I Hope You Dance by Lee Ann Womack and Sons Of The Desert","South Side by Moby feat. Gwen Stefani");
hits01.splice(33,0,"Don’t Tell Me by Madonna","Get Ur Freak On by Missy ‘Misdemeanor’ Elliott","Crazy by K-Ci and JoJo");
hits01.splice(36,0,"Fill Me In by Craig David","Someone To Call My Lover by Janet","With Arms Wide Open by Creed");
hits01.splice(39,0,"Case Of The Ex (Whatcha Gonna Do) by Mya","All Or Nothing by O-Town","Bootylicious by Destiny’s Child");
hits01.splice(42,0,"I’m Like A Bird by Nelly Furtado","Kryptonite by 3 Doors Down","Fiesta by R. Kelly feat. Jay-Z");
hits01.splice(45,0,"When It’s Over by Sugar Ray","Jaded by Aerosmith","Promise by Jagged Edge");
hits01.splice(48,0,"Missing You by Case","Differences by Ginuwine","This I Promise You by ‘N Sync");
hits01.splice(51,0,"Izzo (H.O.V.A.) by Jay-Z","Superwoman Pt. II by Lil’ Mo feat. Fabolous","Crazy For This Girl by Evan And Jaron");
hits01.splice(54,0,"Nobody Wants To Be Lonely by Ricky Martin and Christina Aguilera","I Just Wanna Love U (Give It 2 Me) by Jay-Z","One Minute Man by Missy ‘Misdemeanor’ Elliott");
hits01.splice(57,0,"Danger (Been So Long) by Mystikal feat. Nivea","Only Time by Enya","I Do!! by Toya");

var hits02 = ["How Your Remind Me by Nickelback","Foolish by Ashanti","Hot in Herre by Nelly"];

hits02.splice(3,0,"Dilemma by Nelly feat. Kelly Rowland","Wherever you Will Go by The Calling","A Thousand Miles by Vanessa Carlton");
hits02.splice(6,0,"In the End by Linkin Park","What’s Luv? by Fat Joe feat. Ashanti","U Got it Bad by Usher");
hits02.splice(9,0,"Blurry by Puddle Of Mudd","Complicated by Avril Lavigne","Always on Time by Ja Rule feat. Ashanti");
hits02.splice(12,0,"Ain’t it Funny by Jennifer Lopez feat. Ja Rule","The Middle by Jimmy Eat World","I Need a Girl (Part One) by P. Diddy feat. Usher and Loon");
hits02.splice(15,0,"U Don’t have to Call by Usher","Family Affair by Mary J. Blige","I Need a Girl (Part Two) by P. Diddy and Ginuwine feat. Loon, Mario Winans and Tammy Ruggeri");
hits02.splice(18,0,"Gangsta Lovin’ by Eve feat. Alicia Keys","My Sacrifice by Creed","Without Me by Eminem");
hits02.splice(21,0,"Hero by Enrique Iglesias","All You Wanted by Michelle Branch","Get the Party Started by Pink");
hits02.splice(24,0,"Hero by Chad Kroeger feat. Josey Scott","Wasting My Time by Default","One Last Breath by Creed");
hits02.splice(27,0,"Whenever, Wherever by Shakira","I’m Gonna Be Alright by Jennifer Lopez feat. Nas","Oh Boy by Cam’ron feat. Juelz Santana");
hits02.splice(30,0,"Heaven by DJ Sammy and Yanou feat. Do","Hey Baby by No Doubt feat. Bounty Killer","Girlfriend by ‘N Sync feat. Nelly");
hits02.splice(33,0,"Just a Friend 2002 by Mario","Soak up the Sun by Sheryl Crow","Don’t Let Me Get Me by Pink");
hits02.splice(36,0,"Nothin’ by N.O.R.E.","Oops (Oh My) by Tweet","A Moment Like This by Kelly Clarkson");
hits02.splice(39,0,"Addictive by Truth Hurts feat. Rakim","Happy by Ashanti","No Such Thing by John Mayer");
hits02.splice(42,0,"Just Like a Pill by Pink","Down 4 U by Irv Gotti Presents The Inc. feat. Ja Rule, Ashanti, Charli Baltimore and Vita","Can’t Get You Out Of My Head by Kylie Minogue");
hits02.splice(45,0,"Superman (It’s not Easy) by Five For Fighting","Cleanin’ out my Closet by Eminem","Halfcrazy by Musiq");
hits02.splice(48,0,"Lights, Camera, Action! by Mr. Cheeks","Still Fly by Big Tymers","A Woman’s Worth by Alicia Keys");
hits02.splice(51,0,"7 Days by Craig David","Hey Ma by Cam’ron feat. Juelz Santana, Freekey Zekey and Toya","Work It by Missy “Misdemeanor” Elliott");
hits02.splice(54,0,"Move Bitch by Ludacris feat. Mystikal and Infamous 2.0","Can’t Fight the Moonlight by LeAnn Rimes","Escape by Enrique Iglesias");
hits02.splice(57,0,"More than a Woman by Aaliyah","Hello Good by No Doubt","I Love You by Faith Evans");

var hits03 = ["In Da Club by 50 Cent","Ignition by R. Kelly","Get Busy by Sean Paul"];

hits03.splice(3,0,"Crazy in Love by Beyonce feat. Jay-Z","When I’m Gone by 3 Doors Down","Unwell by matchbox twenty");
hits03.splice(6,0,"Right Thurr by Chingy","Miss You by Aaliyah","Picture by Kid Rock feat. Sheryl Crow");
hits03.splice(9,0,"Bring me to Life by Evanescence feat. Paul McCoy","Get Low by Lil Jon and The East Side Boyz feat. Ying Yang Twins","Baby Boy by Beyonce feat. Sean Paul");
hits03.splice(12,0,"Shake ya Tailfeather by Nelly, P. Diddy and Murphy Lee","21 Questions by 50 Cent feat. Nate Dogg","All I Have by Jennifer Lopez feat. LL Cool J");
hits03.splice(15,0,"Beautiful by Christina Aguilera","I Know what you Want by Busta Rhymes and Mariah Carey feat. The Flipmode Squad","I’m with You by Avril Lavigne");
hits03.splice(18,0,"Drift Away by Uncle Kracker feat. Dobie Gray","Magic Stick by Lil’ Kim feat. 50 Cent","P.I.M.P. by 50 Cent");
hits03.splice(21,0,"Bump, Bump, Bump by B2K and P. Diddy","Into You by Fabolous feat. Tamia Or Ashanti","Can’t let you Go by Fabolous feat. Mike Shorey and Lil’ Mo");
hits03.splice(24,0,"Mesmerize by Ja Rule feat. Ashanti","Where is the Love? by Black Eyed Peas","The Game of Love by Santana feat. Michelle Branch");
hits03.splice(27,0,"Lose Yourself by Eminem","Rock wit U (Awww Baby) by Ashanti","Cry me a River by Justin Timberlake");
hits03.splice(30,0,"How you Gonna Act Like That by Tyrese","Rock your Body by Justin Timberlake","No Letting Go by Wayne Wonder");
hits03.splice(33,0,"Frontin’ by Pharrell feat. Jay-Z","Landslide by Dixie Chicks","Work It by Missy “Misdemeanor” Elliott");
hits03.splice(36,0,"’03 Bonnie & Clyde by Jay-Z feat. Beyonce Knowles","Don’t Mess with my Man by Nivea feat. Brian and Brandon Casey","So Gone by Monica");
hits03.splice(39,0,"Air Force Ones by Nelly feat. Kyjuan, Ali and Murphy Lee","Never Leave You – Uh Ooh, Uh Oooh! by Lumidee","Beautiful by Snoop Dogg feat. Pharrell and Uncle Charlie Wilson");
hits03.splice(42,0,"Gossip Folks by Missy “Misdemeanor” Elliott feat. Ludacris","Miss Independent by Kelly Clarkson","Calling All Angels by Train");
hits03.splice(45,0,"Damn! by YoungBloodZ feat. Lil Jon","This is the Night by Clay Aiken","Your Body is a Wonderland by John Mayer");
hits03.splice(48,0,"Headstrong by Trapt","In those Jeans by Ginuwine","Stand Up by Ludacris feat. Shawnna");
hits03.splice(51,0,"The Remedy (I won’t Worry) by Jason Mraz","Why Don’t You & I by Santana feat. Alex Band Or Chad Kroeger","Excuse Me Miss by Jay-Z");
hits03.splice(54,0,"Jenny from the Block by Jennifer Lopez feat. Styles and Jadakiss","Are you Happy Now? by Michelle Branch","Forever and for Always by Shania Twain");
hits03.splice(57,0,"I Can by Nas","Underneath it All by No Doubt feat. Lady Saw","If you’re not the One by Daniel Bedingfield");

var hits04 = ["Yeah! by Usher feat. Lil Jon and Ludacris","Burn by Usher","If I Ain’t Got You by Alicia Keys"];

hits04.splice(3,0,"This Love by Maroon5","The Way You Move by OutKast feat. Sleepy Brown","The Reason by Hoobastank");
hits04.splice(6,0,"I Don’t Wanna Know by Mario Winans feat. Enya and P. Diddy","Hey Ya! by OutKast","Goodies by Ciara feat. Petey Pablo");
hits04.splice(9,0,"Lean Back by Terror Squad","Tipsy by J-Kwon","Confessions Part II by Usher");
hits04.splice(12,0,"Slow Motion by Juvenile feat. Soulja Slim","Freek-a-Leek by Petey Pablo","Here Without You by 3 Doors Down");
hits04.splice(15,0,"Slow Jamz by Twista feat. Kanye West and Jamie Foxx","Someday by Nickelback","Naughty Girl by Beyonce");
hits04.splice(18,0,"My Immortal by Evanescence","Sunshine by Lil’ Flip feat. Lea","Dirt Off Your Shoulder by Jay-Z");
hits04.splice(21,0,"Move Ya Body by Nina Sky feat. Jabba","Dip It Low by Christina Milian","My Boo by Usher And Alicia Keys");
hits04.splice(24,0,"One Call Away by Chingy feat. J. Weav","Me, Myself, and I by Beyonce","Turn Me On by Kevin Lyttle feat. Spragga Benz");
hits04.splice(27,0,"The First Cut Is The Deepest by Sheryl Crow","You Don’t Know My Name by Alicia Keys","My Place by Nelly feat. Jaheim");
hits04.splice(30,0,"Overnight Celebrity by Twista","Hotel by Cassidy feat. R. Kelly","Numb by Linkin Park");
hits04.splice(33,0,"Diary by Alicia Keys feat. Tony! Toni! Tone!","She Will be Loved by Maroon 5","White Flag by Dido");
hits04.splice(36,0,"Heaven by Los Lonely Boys","It’s My Life by No Doubt","Pieces of Me by Ashlee Simpson");
hits04.splice(39,0,"Leave (Get Out) by JoJo","Milkshake by Kelis","Splash Waterfalls by Ludacris");
hits04.splice(42,0,"Jesus Walks by Kanye West","Locked Up by Akon feat. Styles P.","Stand Up by Ludacris feat. Shawnna");
hits04.splice(45,0,"Suga Suga by Baby Bash feat. Frankie J","All Falls Down by Kanye West feat. Syleena Johnson","Toxic by Britney Spears");
hits04.splice(48,0,"Salt Shaker by Ying Yang Twins feat. Lil Jon and The East Side Boyz","With You by Jessica Simpson","Meant to Live by Switchfoot");
hits04.splice(51,0,"I Like That by Houston feat. Chingy, Nate Dogg and I-20","Sorry 2004 by Ruben Studdard","My Happy Ending by Avril Lavigne");
hits04.splice(54,0,"On Fire by Lloyd Banks","Roses by OutKast","Walker outta Heaven by Jagged Edge");
hits04.splice(57,0,"Lose My Breath by Destiny’s Child","My Band by D12","I’m Still in Love with You by Sean Paul feat. Sasha");

var hits05 = ["We Belong Together by Mariah Carey","Hollaback Girl by Gwen Stefani","Let Me Love You by Mario"];

hits05.splice(3,0,"Since U Been Gone by Kelly Clarkson","1, 2 Step by Ciara feat. Missy Elliott","Gold Digger by Kanye West feat. Jamie Foxx");
hits05.splice(6,0,"Boulevard of Broken Dreams by Green Day","Candy Shop by 50 Cent feat. Olivia","Don’t Cha by The Pussycat Dolls feat. Busta Rhymes");
hits05.splice(9,0,"Behind These Hazel Eyes by Kelly Clarkson","Disco Inferno by 50 Cent","You and Me by Lifehouse");
hits05.splice(12,0,"Don’t Phunk With My Heart by The Black Eyed Peas","Lose Control by Missy Elliott feat. Ciara and Fat Man Scoop","Shake it Off by Mariah Carey");
hits05.splice(15,0,"Mr. Brightside by The Killers","Just a Lil Bit by 50 Cent","Pon de Replay by Rihanna");
hits05.splice(18,0,"How We Do by The Game feat. 50 Cent","Beverly Hills by Weezer","Oh by Ciara feat. Ludacris");
hits05.splice(21,0,"Lonely No More by Rob Thomas","Drop it Like It’s Hot by Snoop Dogg feat. Pharrell","Hate It or Love It by The Game feat. 50 Cent");
hits05.splice(24,0,"Lovers and Friends by Lil Jon and The East Side Boyz feat. Usher and Ludacris","Soldier by Destiny’s Child feat. T.I. and Lil Wayne","Breakaway by Kelly Clarkson");
hits05.splice(27,0,"Switch by Will Smith","Let Me HOld You by Bow Wow feat. Omarion","Like You by Bow Wow feat. Ciara");
hits05.splice(30,0,"Rich Girl by Gwen Stefani feat. Eve","My Humps by The Black Eyed Peas","Obsession (No Es Amor) by Frankie J feat. Baby Bash");
hits05.splice(33,0,"Caught Up by Usher","Listen to your Heart by D.H.T.","Scars by Papa Roach");
hits05.splice(36,0,"Feel Good Inc by Gorillaz","Let Me Go by 3 Doors Down","Holiday by Green Day");
hits05.splice(39,0,"Sugar, we’re Goin’ Down by Fall Out Boy","Grind With Me by Pretty Ricky","Run It! by Chris Brown");
hits05.splice(42,0,"Photograph by Nickelback","Lonely by Akon","Collide by Howie Day");
hits05.splice(45,0,"Wake Me up When September Ends by Green Day","Slow Down by Bobby Valentino","Over and Over by Nelly feat. Tim McGraw");
hits05.splice(48,0,"Some Cut by Trillville feat. Cutty","Get it Poppin’ by Fat Joe feat. Nelly","Play by David Banner");
hits05.splice(51,0,"Soul Survivor by Young Jeezy feat. Akon","Pimpin’ All Over the World by Ludacris feat. Bobby Valentino","My Boo by Usher And Alicia Keys");
hits05.splice(54,0,"Sugar (Gimme Some) by Trick Daddy feat. Ludacris, Lil’ Kim and Cee-Lo","Karma by Alicia Keys","Speed of Sound by Coldplay");
hits05.splice(57,0,"I Don’t Want to Be by Gavin DeGraw","Mockingbird by Eminem","La Tortura by Shakira feat. Alejandro Sanz");

var hits06 = ["Bad Day by Daniel Powter","Temperature by Sean Paul","Promiscuous by Nelly Furtado feat. Timbaland"];

hits06.splice(3,0,"You’re Beautiful by James Blunt","Hips Don’t Lie by Shakira feat. Wyclef Jean","Unwritten by Natasha Bedingfield");
hits06.splice(6,0,"Crazy by Gnarls Barkley","Ridin’ by Chamillionaire feat. Krayzie Bone","Sexyback by Justin Timberlake");
hits06.splice(9,0,"Check on It by Beyonce feat. Slim Thug","Be without You by Mary J. Blige","Grillz by Nelly feat. Paul Wall, Ali and Gipp");
hits06.splice(12,0,"Over My Head (Cable Car) by The Fray","Me & U by Cassie","Buttons by The Pussycat Dolls feat. Snoop Dogg");
hits06.splice(15,0,"Run It! by Chris Brown","So Sick by Ne-Yo","It’s Goin’ Down by Yung Joc");
hits06.splice(18,0,"SOS by Rihanna","I Write Sins not Tragedies by Panic! At The Disco","Move Along by The All-American Rejects");
hits06.splice(21,0,"London Bridge by Fergie","Dani California by Red Hot Chili Peppers","Snap Yo Fingers by Lil Jon feat. E-40 and Sean Paul Of The YoungBloodZ");
hits06.splice(24,0,"Lean Wit It, Rock Wit It by Dem Franchize Boyz feat. Lil Peanut and Charlay","What Hurts the Most by Rascal Flatts","How to Save a Life by The Fray");
hits06.splice(27,0,"Unfaithful by Rihanna","Chasing Cars by Snow Patrol","Lips of an Angel by Hinder");
hits06.splice(30,0,"Everytime We Touch by Cascada","Ain’t no Other Man by Christina Aguilera","Dance, Dance by Fall Out Boy");
hits06.splice(33,0,"Gold Digger by Kanye West feat. Jamie Foxx","Money Maker by Ludacris feat. Pharrell","Ms. New Booty by Bubba Sparxxx feat. Ying Yang Twins and Mr. ColliPark");
hits06.splice(36,0,"(When You Gonna) Give It Up To Me by Sean Paul feat. Keyshia Cole","Photograph by Nickelback","Because of You by Kelly Clarkson");
hits06.splice(39,0,"Stickwitu by The Pussycat Dolls","I’n N Luv (Wit a Stripper) by T-Pain feat. Mike Jones","My Humps by The Black Eyed Peas");
hits06.splice(42,0,"Where’d You Go by Fort Minor feat. Holly Brook","Yo (Excuse Me Miss) by Chris Brown","Walk Away by Kelly Clarkson");
hits06.splice(45,0,"Laffy Taffy by D4L","What you Know by T.I.","Dirty Little Secret by The All-American Rejects");
hits06.splice(48,0,"Savin’ Me by Nickelback","Don’t Forget About Us by Mariah Carey","Sexy Love by Ne-Yo");
hits06.splice(51,0,"U and Dat by E-40 feat. T-Pain and Kandi Girl","Far Away by Nickelback","What’s Left of Me by Nick Lachey");
hits06.splice(54,0,"So What by Field Mob feat. Ciara","Do it to It by Cherish feat. Sean Paul Of The YoungBloodZ","Black Horse & the Cherry Tree by KT Tunstall");
hits06.splice(57,0,"There it Go! (The Whistle Song) by Juelz Santana","Shoulder Lean! by Young Dro feat. T.I.","Unpredictable by Jamie Foxx feat. Ludacris");

var hits07 = ["Irreplaceable by Beyonce","Umbrella by Rihanna feat. Jay-Z","The Sweet Escape by Gwen Stefani feat. Akon"];

hits07.splice(3,0,"Big Girls Don’t Cry by Fergie","Buy U A Drank (Shawty Snappin’) by T-Pain feat. Yung Joc","Before He Cheats by Carrie Underwood");
hits07.splice(6,0,"Hey There Delilah by Plain White T’s","I Wanna Love You by Akon feat. Snoop Dogg","Say It Right by Nelly Furtado");
hits07.splice(9,0,"Glamorous by Fergie feat. Ludacris","Don’t Matter by Akon","Girlfriend by Avril Lavigne");
hits07.splice(12,0,"Makes Me Wonder by Maroon 5","Party Like A Rockstar by Shop Boyz","Smack That by Akon feat. Eminem");
hits07.splice(15,0,"This Is Why I’m Hot by Mims","It’s Not Over by Daughtry","The Way I Are by Timbaland feat. Keri Hilson");
hits07.splice(18,0,"Fergalicious by Fergie","Crank That (Soulja Boy) by Soulja Boy Tell’em","Give It To Me by Timbaland feat. Nelly Furtado & Justin Timberlake");
hits07.splice(21,0,"What Goes Around…Comes Around by Justin Timberlake","Cupid’s Chokehold/Breakfast In America by Gym Class Heroes feat. Patrick Stump","How To Save A Life by The Fray");
hits07.splice(24,0,"Home by Daughtry","My Love by Justin Timberlake feat. T.I.","Stronger by Kanye West");
hits07.splice(27,0,"We Fly High by Jim Jones","U + Ur Hand by Pink","Walk It Out by Unk");
hits07.splice(30,0,"Beautiful Girls by Sean Kingston","This Ain’t A Scene, It’s An Arms Race by Fall Out Boy","Bartender by T-Pain feat. Akon");
hits07.splice(33,0,"Pop, Lock & Drop It by Huey","Runaway Love by Ludacris feat. Mary J. Blige","Rockstar by Nickelback");
hits07.splice(36,0,"Thnks Fr Th Mmrs by Fall Out Boy","What I’ve Done by Linkin Park","Summer Love by Justin Timberlake");
hits07.splice(39,0,"You by Lloyd feat. Lil’ Wayne","Wait For You by Elliott Yamin","Last Night by Diddy feat. Keyshia Cole");
hits07.splice(42,0,"Make It Rain by Fat Joe feat. Lil Wayne","Make Me Better by Fabolous feat. Ne-Yo","Ice Box by Omarion");
hits07.splice(45,0,"Lips Of An Angel by Hinder","Waiting On The World To Change by John Mayer","Lost Without U by Robin Thicke");
hits07.splice(48,0,"I’m A Flirt by R. Kelly Or Bow Wow (feat. T.I. & T-Pain)","If Everyone Cared by Nickelback","Get It Shawty by Lloyd");
hits07.splice(51,0,"Face Down by The Red Jumpsuit Apparatus","The Way I Live by Baby Boy Da Prince feat. Lil Boosie","Shortie Like Mine by Bow Wow feat. Chris Brown & Johnta Austin");
hits07.splice(54,0,"It Ends Tonight by The All-American Rejects","A Bay Bay by Hurricane Chris","Because Of You by Ne-Yo");
hits07.splice(57,0,"I Tried by Bone Thugs-N-Harmony feat. Akon","Welcome To The Black Parade by My Chemical Romance","Shawty by Plies feat. T-Pain");

var hits08 = ["Low by Flo Rida feat. T-Pain","Bleeding Love by Leona Lewis","No One by Alicia Keys"];

hits08.splice(3,0,"Lollipop by Lil Wayne feat. Static Major","Apologize by Timbaland feat. OneRepublic","No Air by Jordin Sparks Duet With Chris Brown");
hits08.splice(6,0,"Love Song by Sara Bareilles","Love In This Club by Usher feat. Young Jeezy","With You by Chris Brown");
hits08.splice(9,0,"Forever by Chris Brown","Sexy Can I by Ray J and Yung Berg","Take A Bow by Rihanna");
hits08.splice(12,0,"Viva La Vida by Coldplay","I Kissed A Girl by Katy Perry","Whatever You Like by T.I.");
hits08.splice(15,0,"Disturbia by Rihanna","Don’t Stop the Music by Rihanna","Pocketful of Sunshine by Natasha Bedingfield");
hits08.splice(18,0,"Kiss Kiss by Chris Brown feat. T-Pain","Closer by Ne-Yo","Bubbly by Colbie Caillat");
hits08.splice(21,0,"Touch My Body by Mariah Carey","4 Minutes by Madonna feat. Justin Timberlake","So What by Pink");
hits08.splice(24,0,"Paralyzer by Finger Eleven","Clumsy by Fergie","I’m Yours by Jason Mraz");
hits08.splice(27,0,"Leavin’ by Jesse McCartney","Dangerous by Kardinal Offishall feat. Akon","Tattoo by Jordin Sparks");
hits08.splice(30,0,"See You Again by Miley Cyrus","Shake It by Metro Station","Stop And Stare by OneRepublic");
hits08.splice(33,0,"Take You There by Sean Kingston","Paper Planes by M.I.A.","Hot N Cold by Katy Perry");
hits08.splice(36,0,"Live Your Life by T.I. feat. Rihanna","Bust It Baby Part 2 by Plies feat. Ne-Yo","American Boy by Estelle feat. Kanye West");
hits08.splice(39,0,"Got Money by Lil Wayne feat. T-Pain","Our Song by Taylor Swift","Damaged by Danity Kane");
hits08.splice(42,0,"A Milli by Lil Wayne","Sorry by Buckcherry","Independent by Webbie feat. Lil’ Phat & Lil’ Boosie");
hits08.splice(45,0,"Can’t Believe It by T-Pain feat. Lil Wayne","Like You’ll Never See Me Again by Alicia Keys","Teardrops On My Guitar by Taylor Swift");
hits08.splice(48,0,"When I Grow Up by The Pussycat Dolls","Sensual Seduction by Snoop Dogg","What You Got by Colby O’Donis feat. Akon");
hits08.splice(51,0,"It’S Not My Time by 3 Doors Down","Better In Time by Leona Lewis","Crank That (Soulja Boy) by Soulja Boy Tell’em");
hits08.splice(54,0,"Shadow Of The Day by Linkin Park","Sweetest Girl (Dollar Bill) by Wyclef Jean feat. Akon, Lil Wayne & Niia","Miss Independent by Ne-Yo");
hits08.splice(57,0,"Fall For You by Secondhand Serenade","In The Ayer by Flo Rida feat. will.i.am","Say by John Mayer");

var hits09 = ["Boom Boom Pow by The Black Eyed Peas","Poker Face by Lady Gaga","Just Dance by Lady Gaga feat. Colby O’Donis"];

hits09.splice(3,0,"I Gotta Feeling by The Black Eyed Peas","Love Story by Taylor Swift","Right Round by Flo Rida");
hits09.splice(6,0,"I’m Yours by Jason Mraz","Single Ladies (Put A Ring On It) by Beyonce","Heartless by Kanye West");
hits09.splice(9,0,"Gives You Hell by The All-American Rejects","You Belong With Me by Taylor Swift","Dead And Gone by T.I. feat. Justin Timberlake");
hits09.splice(12,0,"You Found Me by The Fray","Use Somebody by Kings Of Leon","Knock You Down by Keri Hilson feat. Kanye West and Ne-Yo");
hits09.splice(15,0,"Blame It by Jamie Foxx feat. T-Pain","I Know You Want Me (Calle Ocho) by Pitbull","Live Your Life by T.I. feat. Rihanna");
hits09.splice(18,0,"Kiss Me Thru The Phone by Soulja Boy Tell ’em feat. Sammie","Down by Jay Sean feat. Lil Wayne","The Climb by Miley Cyrus");
hits09.splice(21,0,"Best I Ever Had by Drake","My Life Would Suck Without You by Kelly Clarkson","Halo by Beyonce");
hits09.splice(24,0,"Hot n Cold by Katy Perry","Second Chance by Shinedown","Circus by Britney Spears");
hits09.splice(27,0,"Day ‘n’ Nite by Kid Cudi","Party in the U.S.A. by Miley Cyrus","Don’t Trust Me by 3OH!3");
hits09.splice(30,0,"Run This Town by Jay-Z, Rihanna and Kanye West","Let It Rock by Kevin Rudolf feat. Lil Wayne","Fire Burning by Sean Kingston");
hits09.splice(33,0,"Whatcha Say by Jason DeRulo","Lovegame by Lady Gaga","Waking Up In Vegas by Katy Perry");
hits09.splice(36,0,"Birthday Sex by Jeremih","Sober by Pink","Womanizer by Britney Spears");
hits09.splice(39,0,"Whatever You Like by T.I.","Obsessed by Mariah Carey","Mad by Ne-Yo");
hits09.splice(42,0,"Good Girls Go Bad by Cobra Starship feat. Leighton Meester","Love Lockdown by Kanye West","So What by Pink");
hits09.splice(45,0,"Hotel Room Service by Pitbull","Crack A Bottle by Eminem, Dr. Dre and 50 Cent","If I Were A Boy by Beyonce");
hits09.splice(48,0,"Turning Me On by Keri Hilson feat. Lil Wayne","I Hate This Part by The Pussycat Dolls","Gotta Be Somebody by Nickelback");
hits09.splice(51,0,"Please Don’t Leave Me by Pink","Paparazzi by Lady Gaga","Beautiful by Akon feat. Colby O’Donis and Kardinal Offishall");
hits09.splice(54,0,"Viva la Vida by Coldplay","Right Now (Na Na Na) by Akon","Battlefield by Jordin Sparks");
hits09.splice(57,0,"Sugar by Flo Rida feat. Wynter","Miss Independent by Ne-Yo","Fireflies by Owl City");

var hits10 = ["TiK ToK by Ke$ha","Need You Now by Lady Antebellum","Hey, Soul Sister by Train"];

hits10.splice(3,0,"California Gurls by Katy Perry feat. Snoop Dogg","OMG by Usher feat. will.i.am","Airplanes by B.o.B feat. Hayley Williams");
hits10.splice(6,0,"Love The Way You Lie by Eminem feat. Rihanna","Bad Romance by Lady Gaga","Dynamite by Taio Cruz");
hits10.splice(9,0,"Break Your Heart by Taio Cruz feat. Ludacris","Nothin’ On You by B.o.B feat. Bruno Mars","I Like It by Enrique Iglesias feat. Pitbull");
hits10.splice(12,0,"Bedrock by Young Money feat. Lloyd","In My Head by Jason Derulo","Rude Boy by Rihanna");
hits10.splice(15,0,"Telephone by Lady Gaga feat. Beyonce","Teenage Dream by Katy Perry","Just The Way You Are by Bruno Mars");
hits10.splice(18,0,"Cooler Than Me by Mike Posner","Imma Be by Black Eyed Peas","Empire State of Mind by Jay-Z and Alicia Keys");
hits10.splice(21,0,"DJ Got Us Fallin’ in Love by Usher feat. Pitbull","Billionaire by Travie McCoy feat. Bruno Mars","Not Afraid by Eminem");
hits10.splice(24,0,"Replay by Iyaz","Sexy Chick by David Guetta feat. Akon","Breakeven by The Script");
hits10.splice(27,0,"Your Love Is My Drug by Ke$ha","I Gotta Feeling by Black Eyed Peas","Fireflies by Owl City");
hits10.splice(30,0,"Say Aah by Trey Songz feat. Fabolous","Find Your Love by Drake","Alejandro by Lady Gaga");
hits10.splice(33,0,"Ridin’ Solo by Jason Derulo","Just A Dream by Nelly","How Low by Ludacris");
hits10.splice(36,0,"Like A G6 by Far East Movement feat. The Cataracs and Dev","Carry Out by Timbaland feat. Justin Timberlake","Haven’t Met You Yet by Michael Buble");
hits10.splice(39,0,"Club Can’t Handle Me by Flo Rida feat. David Guetta","Down by Jay Sean feat. Lil Wayne","Bulletproof by La Roux");
hits10.splice(42,0,"Whatcha Say by Jason Derulo","Baby by Justin Bieber feat. Ludacris","Whataya Want From Me by Adam Lambert");
hits10.splice(45,0,"Mine by Taylor Swift","Only Girl (In The World) by Rihanna","Live Like We’re Dying by Kris Allen");
hits10.splice(48,0,"Hard by Rihanna feat. Jeezy","Young Forever by Jay-Z and Mr. Hudson","Blah Blah Blah by Ke$ha feat. 3OH!3");
hits10.splice(51,0,"Bottoms Up by Trey Songz feat. Nicki Minaj","Do You Remember by Jay Sean feat. Sean Paul & Lil Jon","All The Right Moves by OneRepublic");
hits10.splice(54,0,"According To You by Orianthi","My Chick Bad by Ludacris feat. Nicki Minaj","You Belong With Me by Taylor Swift");
hits10.splice(57,0,"Meet Me Halfway by Black Eyed Peas","Take It Off by Ke$ha","Over by Drake");

var hits11 = ["Rolling In The Deep by Adele","Party Rock Anthem by LMFAO feat. Lauren Bennett & GoonRock","Firework by Katy Perry"];

hits11.splice(3,0,"E.T. by Katy Perry feat. Kanye West","Give Me Everything by Pitbull feat. Ne-Yo, Afrojack & Nayer","Grenade by Bruno Mars");
hits11.splice(6,0,"F**K You (Forget You) by Cee Lo Green","Super Bass by Nicki Minaj","Moves Like Jagger by Maroon 5 feat. Christina Aguilera");
hits11.splice(9,0,"Just Can’t Get Enough by The Black Eyed Peas","On The Floor by Jennifer Lopez feat. Pitbull","S&M by Rihanna");
hits11.splice(12,0,"Pumped Up Kicks by Foster The People","Last Friday Night (T.G.I.F.) by Katy Perry","Just The Way You Are by Bruno Mars");
hits11.splice(15,0,"Tonight (I’m Lovin’ You) by Enrique Iglesias feat. Ludacris & DJ Frank E","Raise Your Glass by P!Nk","Born This Way by Lady Gaga");
hits11.splice(18,0,"F**Kin’ Perfect by P!Nk","What’s My Name? by Rihanna feat. Drake","Look At Me Now by Chris Brown feat. Lil Wayne & Busta Rhymes");
hits11.splice(21,0,"Down On Me by Jeremih feat. 50 Cent","How To Love by Lil Wayne","Someone Like You by Adele");
hits11.splice(24,0,"Good Life by OneRepublic","The Lazy Song by Bruno Mars","Till The World Ends by Britney Spears");
hits11.splice(27,0,"The Show Goes On by Lupe Fiasco","The Edge Of Glory by Lady Gaga","We R Who We R by Ke$Ha");
hits11.splice(30,0,"Black And Yellow by Wiz Khalifa","Tonight Tonight by Hot Chelle Rae","Blow by Ke$Ha");
hits11.splice(33,0,"Lighters by Bad Meets Evil feat. Bruno Mars","If I Die Young by The Band Perry","Stereo Hearts by Gym Class Heroes feat. Adam Levine");
hits11.splice(36,0,"The Time (Dirty Bit) by The Black Eyed Peas","Coming Home by Diddy – Dirty Money feat. Skylar Grey","Hey Baby (Drop It To The Floor) by Pitbull feat. T-Pain");
hits11.splice(39,0,"Only Girl (In The World) by Rihanna","6 Foot 7 Foot by Lil Wayne feat. Cory Gunz","Just A Kiss by Lady Antebellum");
hits11.splice(42,0,"Dirt Road Anthem by Jason Aldean","Dynamite by Taio Cruz","No Hands by Waka Flocka Flame feat. Roscoe Dash & Wale");
hits11.splice(45,0,"I Wanna Go by Britney Spears","I’m On One by DJ Khaled feat. Drake, Rick Ross & Lil Wayne","You Make Me Feel… by Cobra Starship feat. Sabi");
hits11.splice(48,0,"Yeah 3x by Chris Brown","Moment 4 Life by Nicki Minaj feat. Drake","I Need A Doctor by Dr. Dre feat. Eminem & Skylar Grey");
hits11.splice(51,0,"Just A Dream by Nelly","Motivation by Kelly Rowland feat. Lil Wayne","Stereo Love by Edward Maya & Vika Jigulina");
hits11.splice(54,0,"Jar Of Hearts by Christina Perri","Roll Up by Wiz Khalifa","Sexy And I Know It by LMFAO");
hits11.splice(57,0,"Rocketeer by Far*East Movement feat. Ryan Tedder","All Of The Lights by Kanye West","Hold It Against Me by Britney Spears");

var hits12 = ["Somebody That I Used To Know by Gotye feat. Kimbra","Call Me Maybe by Carly Rae Jepsen","We Are Young by fun. feat. Janelle Monae"];

hits12.splice(3,0,"Payphone by Maroon 5 feat. Wiz Khalifa","Lights by Ellie Goulding","Glad You Came by The Wanted");
hits12.splice(6,0,"Stronger (What Doesn’t Kill You) by Kelly Clarkson","We Found Love by Rihanna feat. Calvin Harris","Starships by Nicki Minaj");
hits12.splice(9,0,"What Makes You Beautiful by One Direction","Wild Ones by Flo Rida feat. Sia","Set Fire To The Rain by Adele");
hits12.splice(12,0,"Sexy And I Know It by LMFAO","Some Nights by fun.","Wide Awake by Katy Perry");
hits12.splice(15,0,"Good Feeling by Flo Rida","Whistle by Flo Rida","One More Night by Maroon 5");
hits12.splice(18,0,"Drive By by Train","The Motto by Drake feat. Lil Wayne","Where Have You Been by Rihanna");
hits12.splice(21,0,"Everybody Talks by Neon Trees","Take Care by Drake feat. Rihanna","Titanium by David Guetta feat. Sia");
hits12.splice(24,0,"I Won’t Give Up by Jason Mraz","It Will Rain by Bruno Mars","Mercy by Kanye West, Big Sean, Pusha T, 2 Chainz");
hits12.splice(27,0,"Boyfriend by Justin Bieber","Party Rock Anthem by LMFAO feat. Lauren Bennett & GoonRock","Too Close by Alex Clare");
hits12.splice(30,0,"Part Of Me by Katy Perry","Young, Wild & Free by Snoop Dogg and Wiz Khalifa feat. Bruno Mars","We Are Never Ever Getting Back Together by Taylor Swift");
hits12.splice(33,0,"As Long as You Love Me by Justin Bieber feat. Big Sean","Turn Me On by David Guetta feat. Nicki Minaj","Moves Like Jagger by Maroon 5 feat. Christina Aguilera");
hits12.splice(36,0,"Blow Me (One Last Kiss) by P!nk","Good Time by Owl City and Carly Rae Jepsen","Give Your Heart A Break by Demi Lovato");
hits12.splice(39,0,"Ni**As In Paris by Jay Z and Kanye West","The One That Got Away by Katy Perry","Feel So Close by Calvin Harris");
hits12.splice(42,0,"Someone Like You by Adele","Scream by Usher","Rack City by Tyga");
hits12.splice(45,0,"Domino by Jessie J","Gangnam Style by PSY","International Love by Pitbull feat. Chris Brown");
hits12.splice(48,0,"Home by Phillip Phillips","Without You by David Guetta feat. Usher","Ass Back Home by Gym Class Heroes feat. Neon Hitch");
hits12.splice(51,0,"Wanted by Hunter Hayes","Drunk On You by Luke Bryan","No Lie by 2 Chainz feat. Drake");
hits12.splice(54,0,"Want U Back by Cher Lloyd","Don’t Wake Me Up by Chris Brown","Dance (A$$) by Big Sean feat. Nicki Minaj");
hits12.splice(57,0,"Springsteen by Eric Church","Brokenhearted by Karmin","Not Over You by Gavin DeGraw");

var hits13 = ["Thrift Shop by Macklemore and Ryan Lewis feat. Wanz","Blurred Lines by Robin Thicke feat. T.I. and Pharrell","Radioactive by Imagine Dragons"];

hits13.splice(3,0,"Harlem Shake by Baauer","Can't Hold Us by Macklemore and Ryan Lewis feat. Ray Dalton","Mirrors by Justin Timberlake");
hits13.splice(6,0,"Just Give Me A Reason by P!nk feat. Nate Ruess","When I Was Your Man by Bruno Mars","Cruise by Florida Georgia Line feat. Nelly");
hits13.splice(9,0,"Roar by Katy Perry","Locked Out Of Heaven by Bruno Mars","Ho Hey by Lumineers");
hits13.splice(12,0,"Stay by Rihanna feat. Mikky Ekko","Get Lucky by Daft Punk feat. Pharrell Williams","Royals by Lorde");
hits13.splice(15,0,"I Knew You Were Trouble by Taylor Swift","We Can't Stop by Miley Cyrus","Wrecking Ball by Miley Cyrus");
hits13.splice(18,0,"Wake Me Up! by Avicii","Suit and Tie by Justin Timberlake feat. Jay Z","Cups (Pitch Perfect's When I'm Gone) by Anna Kendrick");
hits13.splice(21,0,"Holy Grail by Jay Z feat. Justin Timberlake","Scream and Shout by will.i.am and Britney Spears","Clarity by Zedd feat. Foxes");
hits13.splice(24,0,"Sail by AWOLNATION","Don't You Worry Child by Swedish House Mafia feat. John Martin","Diamonds by Rihanna");
hits13.splice(27,0,"I Love It by Icona Pop feat. Charli XCX","Safe And Sound by Capital Cities","Treasure by Bruno Mars");
hits13.splice(30,0,"The Way by Ariana Grande feat. Mac Miller","Started From The Bottom by Drake","Come and Get It by Selena Gomez");
hits13.splice(33,0,"Hold On, We're Going Home by Drake feat. Majid Jordan","Daylight by Maroon 5","Feel This Moment by Pitbull feat. Christina Aguilera");
hits13.splice(36,0,"Applause by Lady Gaga","One More Night by Maroon 5","Love Me by Lil Wayne feat. Drake and Future");
hits13.splice(39,0,"My Songs Know What You Did In The Dark (Light Em Up) by Fall Out Boy","F**kin Problems by A$AP Rocky feat. Drake, 2 Chainz and Kendrick Lamar","Beauty And A Beat by Justin Bieber feat. Nicki Minaj");
hits13.splice(42,0,"Same Love by Macklemore and Ryan Lewis feat. Mary Lambert","Sweet Nothing by Calvin Harris feat. Florence Welch","Summertime Sadness by Lana Del Rey and Cedric Gervais");
hits13.splice(45,0,"Home by Phillip Phillips","It's Time by Imagine Dragons","Power Trip by J. Cole feat. Miguel");
hits13.splice(48,0,"Girl On Fire by Alicia Keys feat. Nicki Minaj","Heart Attack by Demi Lovato","Love Somebody by Maroon 5");
hits13.splice(51,0,"I Will Wait by Mumford and Sons","Try by P!nk","Wagon Wheel by Darius Rucker");
hits13.splice(54,0,"Gangnam Style by Psy","I Need Your Love by Calvin Harris feat. Ellie Goulding","Die Young by Ke$ha");
hits13.splice(57,0,"Some Nights by fun.","Bad by Wale feat. Tiara Thomas or Rihanna","Boys 'Round Here by Blake Shelton feat. Pistol Annies and Friends");

var hits14 = ["Happy by Pharrell Williams","Dark Horse by Katy Perry feat. Juicy J","All Of Me by John Legend"];

hits14.splice(3,0,"Fancy by Iggy Azalea feat. Charli XCX","Counting Stars by OneRepublic","Talk Dirty by Jason Derulo feat. 2 Chainz");
hits14.splice(6,0,"Rude by MAGIC!","All About That Bass by Meghan Trainor","Problem by Ariana Grande feat. Iggy Azalea");
hits14.splice(9,0,"Stay With Me by Sam Smith","Timber by Pitbull feat. Ke$ha","Pompeii by Bastille");
hits14.splice(12,0,"Shake It Off by Taylor Swift","Am I Wrong by Nico and Vinz","Turn Down For What by DJ Snake and Lil Jon");
hits14.splice(15,0,"The Monster by Eminem feat. Rihanna","Say Something by A Great Big World and Christina Aguilera","Team by Lorde");
hits14.splice(18,0,"Let Her Go by Passenger","Royals by Lorde","Let It Go by Idina Menzel");
hits14.splice(21,0,"Wake Me Up! by Avicii","Demons by Imagine Dragons","Story Of My Life by One Direction");
hits14.splice(24,0,"Chandelier by Sia","Black Widow by Iggy Azalea feat. Rita Ora","Bang Bang by Jessie J, Ariana Grande & Nicki Minaj");
hits14.splice(27,0,"Latch by Disclosure feat. Sam Smith","Maps by Maroon 5","Loyal by Chris Brown feat. Lil Wayne and French Montana or Too $hort or Tyga");
hits14.splice(30,0,"Best Day Of My Life by American Authors","Habits (Stay High) by Tove Lo","Summer by Calvin Harris");
hits14.splice(33,0,"Boom Clap by Charli XCX","Drunk In Love by Beyonce feat. Jay Z","Anaconda by Nicki Minaj");
hits14.splice(36,0,"Break Free by Ariana Grande feat. Zedd","Bailando by Enrique Iglesias feat. Descemer Bueno and Gente De Zona","Burn by Ellie Goulding");
hits14.splice(39,0,"Wiggle by Jason Derulo feat. Snoop Dogg","Rather Be by Clean Bandit feat. Jess Glynne","Don’t Tell ‘Em by Jeremih feat. Yg");
hits14.splice(42,0,"Show Me by Kid Ink feat. Chris Brown","Wrecking Ball by Miley Cyrus","Not A Bad Thing by Justin Timberlake");
hits14.splice(45,0,"Roar by Katy Perry","Ain’t It Fun by Paramore","The Man by Aloe Blacc");
hits14.splice(48,0,"This Is How We Roll by Florida Georgia Line feat. Luke Bryan","Classic by Mkto","A Sky Full Of Stars by Coldplay");
hits14.splice(51,0,"Don’t by Ed Sheeran","Na Na by Trey Songz","Hot Boy by Bobby Shmurda");
hits14.splice(54,0,"Hold On, We’re Going Home by Drake feat. Majid Jordan","Sing by Ed Sheeran","Radioactive by Imagine Dragons");
hits14.splice(57,0,"My Hitta by Yg feat. Jeezy and Rich Homie Quan","Cool Kids by Echosmith","Hey Brother by Avicii");

var hits15 = ["Uptown Funk! by Mark Ronson feat. Bruno Mars","Thinking Out Loud by Ed Sheeran","See You Again by Wiz Khalifa feat. Charlie Puth"];

hits15.splice(3,0,"Trap Queen by Fetty Wap","Sugar by Maroon 5","Shut Up and Dance by Walk The Moon");
hits15.splice(6,0,"Blank Space by Taylor Swift","Watch Me by Silento","Earned It (Fifty Shades Of Grey) by Weeknd");
hits15.splice(9,0,"The Hills by Weeknd","Cheerleader (Felix Jaehn Remix) by OMI","Can’t Feel My Face by Weeknd");
hits15.splice(12,0,"Love Me Like You Do by Ellie Goulding","Take Me To Church by Hozier","Bad Blood by Taylor Swift feat. Kendrick Lamar");
hits15.splice(15,0,"Lean On by Major Lazer and DJ Snake feat. M0","Want To Want Me by Jason Derulo","Shake It Off by Taylor Swift");
hits15.splice(18,0,"Where Are U Now by Skrillex and Diplo With Justin Bieber","Fight Song by Rachel Platten","679 by Fetty Wap feat. Remy Boyz");
hits15.splice(21,0,"Lips Are Movin by Meghan Trainor","Worth It by Fifth Harmony feat. Kid Ink","Post To Be by Omarion feat. Chris Brown and Jhene Aiko");
hits15.splice(24,0,"Honey, I’m Good. by Andy Grammer","I’m Not The Only One by Sam Smith","Good For You by Selena Gomez feat. A$AP Rocky");
hits15.splice(27,0,"All About That Bass by Meghan Trainor","Style by Taylor Swift","Hotline Bling by Drake");
hits15.splice(30,0,"Hey Mama by David Guetta feat. Nicki Minaj, Bebe Rexha and Afrojack","G.D.F.R. by Flo Rida feat. Sage The Gemini and Lookas","What Do You Mean? by Justin Bieber");
hits15.splice(33,0,"Photograph by Ed Sheeran","Hello by Adele","Stitches by Shawn Mendes");
hits15.splice(36,0,"Talking Body by Tove Lo","Jealous by Nick Jonas","Time Of Our Lives by Pitbull and Ne-Yo");
hits15.splice(39,0,"Locked Away by R. City feat. Adam Levine","Somebody by Natalie La Rose feat. Jeremih","FourFiveSeconds by Rihanna, Kanye West, and Paul McCartney");
hits15.splice(42,0,"Centuries by Fall Out Boy","My Way by Fetty Wap feat. Monty","Take Your Time by Sam Hunt");
hits15.splice(45,0,"Animals by Maroon 5","I Don’t F**k With You by Big Sean feat. E-40","B**** Better Have My Money by Rihanna");
hits15.splice(48,0,"Flex (Ooh Ooh Ooh) by Rich Homie Quan","Nasty Freestyle by T-Wayne","Only by Nicki Minaj feat. Drake, Lil Wayne and Chris Brown");
hits15.splice(51,0,"Elastic Heart by Sia","Cool For The Summer by Demi Lovato","Renegades by X Ambassadors");
hits15.splice(54,0,"I Don’t Mind by Usher feat. Juicy J","Love Me Harder by Ariana Grande and The Weeknd","Wildest Dreams by Taylor Swift");
hits15.splice(57,0,"Stay With Me by Sam Smith","You Know You Like It by DJ Snake and Alunageorge","Uma Thurman by Fall Out Boy");

var hitsall = [hits92,hits93,hits94,hits94,hits96,hits97,hits98,hits99,hits00,hits01,hits02,hits03,hits04,hits05,hits06,hits07,hits08,hits09,hits10,hits11,hits12,hits13,hits14,hits14];

function setup() {
    createCanvas(520, 360);

}

function draw() {
    //these arrays hold the years that map to the hour of the day
    var yearSet1 = [1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003];
    var yearSet2 = [2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016];
    var year = yearSet1.concat(yearSet2);

    background("#ff8080");
    //creates time variables
    var s = second();
    var m = minute();
    var h = hour();
    //because the minutes function starts at 0, we need to add one to get the number of the hit
    var n = m + 1;
    //chooses which array to display based on the hour
    var hits = hitsall[h];
    textAlign(CENTER);
    fill("white");
    textFont("Palantino");
    textSize(18);
    //year
    text(year[h],width/2,height/4);
    //hit song
    text(n + ". " + hits[m],width/2,height/2);
    //seconds
    text(s,width/2,height/2 + height/4);

}

Based on the current hour and minute, this program displays the top 60 hit songs between 1992 and 2015.

James Katungyi – Project 06 – Abstract Clock

Abstract Clock

jameskatungyi-project06-abstractclock

//James Katungyi
//Section A 0900
//jkatungy@andrew.cmu.edu
//Assignment-Project-06

function setup(){
    createCanvas(300,300);
    
}
function draw(){
    background(227,218,186);
    stroke(208,169,97);
    strokeWeight(1);
    HourBar();//hour bar function
    MinuteLine();//minute line function
    SecondBall();//second ball function
}
function HourBar(){
    var BarH = height/24;
    var H = hour(); //link to computer clock hour
    var M = minute();//link to computer clock minutes
    var HBarX = map(M,0,59,0,width);//link x position to minute
    var HBarY = map(H,0,23,0,height);//link Y position to hour
    stroke(208,169,97);
    if ((HBarY > height*6/24) & (HBarY < height*18/24)){//fill color bar with light color from 6am to 6pm 
        fill(245);
    } else {
        fill(180);//otherwise make hour bar dark
    }
    rect(0,HBarY,HBarX,BarH);//hour bar
    for (var y = 0; y < HBarY; y += 12.5){
        if ((y > height*6/24) & (y < height*18/24)){//fill bars with light shade from 6am to 6pm 
            fill(245);
        } else {
            fill(180);
        }
        rect(0,y,width-1,BarH);
    }  
}
function MinuteLine(){
    var M = minute();//computer clock minute
    var S = second(); //computer clock seconds
    var LineY = map(S,0,59,0,height);//link x position to seconds
    var LineX = map(M,0,59,0,width);//link x position to minutes
    stroke(208,169,97);
    strokeWeight(1);
    line(LineX,0,LineX,LineY);//minute line
    for (var x = 0; x < LineX; x += 5){
        line(x, 0, x, height);
    }
}
function SecondBall(){
    var diam = 20;
    var S = second();//computer clock seconds
    var M = minute();
    var BallX = map(S, 0, 59, 0, width); //link seconds to x position of the ball
    var BallY = map(M, 0, 59, 0, height); //link ball position of y to minutes
    stroke(208,169,97);
    strokeWeight(1);
    if ((BallY > height*7/24) & (BallY < height*19/24)){//fill ball with dark shade from 6am to 6pm 
            fill(180);
        } else {
            fill(245);
        }
    ellipseMode(CENTER);
    ellipse(BallX,BallY,diam,diam); //draw ball
}


As the hours and minutes build up, the canvas fills with boxes and lines. Each day is a fresh start on a clean slate. Each hour starts out less clattered than towards its close.

The seconds are marked by a ball which was supposed to bounce off the sides evoking the ‘tick-tock’ associated with clocks. However, the reverse direction did not work out. In a way, the single direction is better because each second is fresh, not recycled.

The hours relate to the minutes in that one can tell the hour and minute by just looking at the hour indicator. The same with the minutes and seconds. And ofcourse one can tell the night hours from the day hours – a feature that is perhaps only useful in casinos where one never sees the sky.

GarrettRauck-Project-6

sketch

//Garrett Rauck
//Section C
//grauck@andrew.cmu.edu
//Project-06-Abstract Clock

//In this clock, the hour is represented by the greyscale tone of the background,
//the minute is represented by the rotation of the line, and the second is
//represented by the inflection of the line which is a 6-bit binary representation
//of the integer value of the second.

/////////////////////////////////
// GLOBAL VARS
/////////////////////////////////
//canvas
var canvasWidth, canvasHeight;
//time
var h, m, s;
//geometry
var x = []; //x pts of line
var y = []; //y pts of line
var nBits, ptsPerBit, nPts, ptSpacing;
var bitVal, bit0Amplitude, bit1Amplitude;
var rotationAngle;
var seeTime;
var mBallSize, sBallSize, cBallSize;
//color
var cBackground, cStroke;

/////////////////////////////////
// HELPER FNS
/////////////////////////////////
function drawWave() {
    for (var i = 0; i < x.length-1; i++) {
        stroke(cStroke);
        push(); //rotation for minute
            translate(canvasWidth/2, canvasHeight/2); //translate to origin
            rotate(rotationAngle); //rotate based on current minute
            translate(-canvasWidth/2, -canvasHeight/2); //translate back to position.
            line(x[i], y[i], x[i+1], y[i+1]); //draw line
        pop();
    }
}

function drawSBall() {
    var armLength = canvasWidth/4-sBallSize/2;
    var theta = s*(TWO_PI/60) - HALF_PI;
    var cx = canvasWidth/2 + armLength*cos(theta);
    var cy = canvasHeight/2 + armLength*sin(theta);
    stroke(0);
    noFill();
    ellipse(cx, cy, sBallSize);
}

function drawMBall() {
    var armLength = canvasWidth/2-mBallSize/2;
    var theta = rotationAngle;
    var cx = canvasWidth/2 + armLength*cos(theta);
    var cy = canvasHeight/2 + armLength*sin(theta);
    noStroke();
    fill(0);
    ellipse(cx, cy, mBallSize);
}

function drawCBall() {
    noStroke();
    fill(0);
    ellipse(canvasWidth/2, canvasHeight/2, cBallSize);
}

function drawTime() {
    var h = hour()%12;
    var m = minute();
    var s = second();
    noStroke();
    fill(cStroke);
    text("" + nf(h,2,0) + ":" + nf(m,2,0) + ":" + nf(s,2,0), canvasWidth/2, 3*canvasHeight/4);
}

//adapted from fernandosavio's function on Stack Overflow
//http://stackoverflow.com/questions/9939760/how-do-i-convert-an-integer-to-binary-in-javascript
function getBinString(n){
    //return binary string for input number with specified number of digits
    return nf((n >>> 0).toString(2), nBits); 
}

function updateTime() {
    h = hour();
    m = minute();
    s = second();
}

function updatePts() {
    //clean pts lists
    x = [];
    y = [];
    //get binary string for seconds count
    binString = getBinString(s); //convert second to binary, return string
    //get x and y values for pts
    for (i = 0; i < nBits; i++) { //for each bit
        bitVal = int(binString[i]);
        for (j = 0; j < ptsPerBit; j++) { //for each pt in bit
            x.push(i*ptsPerBit*ptSpacing+j*ptSpacing); //x value
            if (bitVal == 0) {
                yMax = bit0Amplitude;
                yMin = -bit0Amplitude;
            }
            else {
                yMax = bit1Amplitude;
                yMin = -bit1Amplitude;
            }
            y.push(canvasHeight/2 + random(yMax, yMin)) //y value
        }
    }
}

function updateRotation() {
    rotationAngle = m*(TWO_PI/60) + HALF_PI;
}

function updateColors() {
    cStroke = color(h*(255/24)); // greyscale tone, hr0 = 0, hr24 = 255
    cBackground = color(255-h*(255/24)); //greyscale tone, hr0 = 255, hr24 = 0
}

function updateModel() {
    updateTime();
    updatePts();
    updateRotation();
    updateColors();
}

/////////////////////////////////
// EVENTS
/////////////////////////////////
function keyPressed() {
    if (seeTime == false) seeTime = true;
    else seeTime = false;
}
/////////////////////////////////
// RUN
/////////////////////////////////
function setup() {
    // INIT VARS
    //canvas
    canvasWidth = canvasHeight = 400;
    //time
    h = hour();
    m = minute();
    s = second();
    //geometry
    nBits = 6; //max second count will be 59, which is 111011 in binary, 6 bits
    ptsPerBit = 25; //density of "bits" represented graphically
    nPts = nBits*ptsPerBit;
    ptSpacing = canvasWidth/nPts;
    bit0Amplitude = 5;
    bit1Amplitude = 50;
    seeTime = false;
    mBallSize = 15;
    sBallSize = 8;
    cBallSize = 5;
    
    //canvas setup
    createCanvas(canvasWidth, canvasHeight);
    ellipseMode(CENTER);

    //initial list setup
    // rotateMinuteHand();
    updateModel();
}

function draw() {
    //update model
    updateModel();
    //draw background
    background(cBackground);
    //draw wave
    drawWave();
    //draw minute ball
    drawMBall();
    //draw minute ball
    drawSBall();
    //draw center ball
    // drawCBall();
    //draw actual time
    if (seeTime == true) {
        drawTime();
    }
}

The aesthetic of this clock was inspired by an exhibit by Martin Messier, which I had the chance to experience at Pittsburgh’s Wood Street Galleries over the summer. I wanted to explore creating a visual drama through the activation of a single line. I used randomness to generate “noise” in the line to give a sense of constant movement, time passing. The “bands” that form within the line change every second and are a 6-bit binary representation of the second count, from 0 to 59; the bands with the larger amplitude represent 1’s, while the bands with the smaller amplitude represent 0’s. The minute is complete when the line returns to flat, then the binary counting begins again. The minute is represented by the rotation of the line and the ball at the end, while the hour is represented by the grey-scale tone change throughout the 24-hour period–white at 00:00, black at 23:00.

mreyes-project-06

mreyes-06


//Mercedes Reys

//Section C 

//mreyes@andrew.cmu.edu

//Project-06


var m;
var s;
var h;

var dSM = 360/60;//to devide minutes and seconds into 60 points on circle 

function setup() {
    background(255);//draw second backgrond for shodow/ghost effect
    
    createCanvas(400, 400);

}

function draw() {
     
    background(190, 136, 252,50)// draw tranparent backgrond for shodow/ghost effect
    angleMode(DEGREES)

    //time varibales
    m = minute();
    s = second();
    h = hour();

    var cx = 0;//center x cordinate 
    var cy = 0;//center y cordinate   

    //seconds variables
    var sRadius = width/3; // orbit of seconds circle
    var sx = cos(dSM*s)*sRadius;//x cordinate of circle center
    var sy = sin(dSM*s)*sRadius;//y cordinate of circle center 
    
    // minutes variables
    var mRadius = sRadius+35//orbit 
    var mx = cos(dSM*m)*mRadius;//x
    var my = sin(dSM*m)*mRadius;//y

    push()
    translate(width/2,height/2);
    rotate(90);//start at bottom 
    noStroke();
    
    //seconds ellipse
    var b = map(s, 0,60, 0, 255);
    var g = map(s,0,60,0,255);
    fill(0,g,b,50)//fade from black to cyan in tune with seconds passing by 
    ellipse(sx+cx,sy+cy,5,5);

    //hours ellipse
    var b = map(h, 0,24, 0, 255);
    fill(255,255,b);//fade from yellow to white in tune with hours passing by 
    ellipse(cx,cy,h*10,h*10);//grow larger as hours go by 

    //minutes ellipse
    var g = map(m, 0,60, 0, 255);//fade from magenta to white
    noStroke();
    fill(255,g,255);
    ellipse((-mx)+cx,(-my)+cy,m,m);//negative cordinates to start at top rather than bottom
    pop();

    
 
} 





for this I just tied to incorporate the functions we were using to make the clock assignment to make shires that orbit and grow depending on the time. Here is the sketch.

screen-shot-2016-10-07-at-11-23-06-pm

Diana Connolly – Project 6

lunar

var x = 0;
var cloudX = 0;

function setup() {
    createCanvas(600, 350);
}

function draw() {
    noStroke();
    if (hour() >= 12) { //makes background go from dark blue to orange every other half cycle
        var colors1 = nigth2day();
        background(colors1[0], colors1[1], colors1[2]);
    } else if (hour() < 12) { //makes background go from orange to dark blue every other half cycle
        var colors2 = day2night();
        background(colors2[0], colors2[1], colors2[2]);
    }
    theSun(); //calls sun function
    theMoon(); //calls moon function
    ground(); //calls ground function
    mountains(); //calls mountain function
    shootingStar();
    cloud();
}


//SHAPES:
function theSun() {
    push();
    translate(width/2, height);
    rotate(radians(hour()*15)); //rotates sun from 180˚ starting point, in a full circle every day
    fill("yellow");
    ellipse(0, height-50, 60,60); //sun rotates in a circle of diam=height-50
    pop();
}

function theMoon() {
    push();
    translate(width/2, height);
    rotate(radians(180+hour()*15)); //rotates moon from 0˚ starting point, in a full circle every day
    fill("lightBlue");
    ellipse(0, height-50, 60,60); //moon rotates in a circle of diam=height-50
    pop();
}

function shootingStar() {
    push();
    frameRate(width);
    if (second() <= 60) { //makes the shooting star go across screen per second
        x = x+10;
    }
    if (x>=width) { //makes shooting star start over again
        x = 0;
    }
    fill(255);
    ellipse(x, 30, 10,10);
    pop();

}

function cloud() {
    push();
    frameRate(width);
    if (minute() <= 60) { //makes cloud go across screen per minute
        cloudX = cloudX+(10/60);
    }
    if (cloudX>=width) { //makes cloud start over again
        cloudX = 0;
    }
    fill(255, 80);
    ellipse(cloudX-15, 110, 50,20);
    ellipse(cloudX, 100, 30,20);
    ellipse(cloudX+25, 107, 40,25);
    ellipse(cloudX+35, 115, 30,20);
    ellipse(cloudX+45, 110, 40,20);
    ellipse(cloudX, 110, 40,20);
    pop();

}

function ground() {
    if (hour() >= 12) { //makes ground go from purple to pink every other half cycle
        var colors3 = purple2pink();
        fill(colors3[0], colors3[1], colors3[2]);
    } else if (hour() < 12) { //makes ground go from pink to purple every other half cycle
        var colors4 = pink2purple();
        fill(colors4[0], colors4[1], colors4[2]);
    }
    rect(0, height/2 + 72, width, height/3);
}

function mountains() {
    //Middle mountain
    beginShape();
    fill(150);
    vertex(50, height/2+100);
    vertex(240, 130);
    vertex(width-60, height/2+100);
    endShape(CLOSE);

    //Right mountain
    beginShape();
    fill(225);
    vertex(width, height/2+35);
    vertex(width-30, height/2+10);
    vertex(width-50, height/2+20);
    vertex(width-88, 130);
    vertex(width-125, 170);
    vertex(width-140, 160);
    vertex(width/2-70, height-65);
    vertex(width, height-65);
    endShape(CLOSE);

    //Left mountain
    beginShape();
    fill(0);
    vertex(0, height/2+70);
    vertex(80, height/2);
    vertex(95, height/2+10);
    vertex(120, height/2-10);
    vertex(width/2+50, height-40);
    vertex(0, height-40);
    endShape(CLOSE);
}


//FILLS:
function nigth2day() { //dark blue to orange color gradient
    var colR1 = map(hour(), 0,12, 243, 44);
    var colG1 = map(hour(), 0,12, 135, 17);
    var colB1 = map(hour(), 0,12, 107,106);
    return [colR1, colG1, colB1];
}

function day2night() { //orange to dark blue color gradient
    var colR2 = map(hour(), 12,24, 44, 243);
    var colG2 = map(hour(), 12,24, 17, 135);
    var colB2 = map(hour(), 12,24, 106, 107);
    return [colR2, colG2, colB2];
}

function purple2pink() { //purple to pink color gradient
    var colR3 = map(hour(), 0,12, 192, 46);
    var colG3 = map(hour(), 0,12, 82, 73);
    var colB3 = map(hour(), 0,12, 105, 104);
    return [colR3, colG3, colB3];
}

function pink2purple() { //pink to purple color gradient
    var colR4 = map(hour(), 12,24, 46, 192);
    var colG4 = map(hour(), 12,24, 73, 82);
    var colB4 = map(hour(), 12,24, 104, 105);
    return [colR4, colG4, colB4];
}

For this week’s project, I wanted to create my abstract clock incorporating the moon and the sun. I wanted to use the time of day to correspond with having either the moon or the sun being in the sky. And with this, I wanted the sky to reflect the position of the sun by changing color. I then decided to add in mountains to make a landscape. This all represents time of day using the hour() function. To represent minutes, I added in a translucent cloud, that takes a minute to cross the screen. To represent seconds, I added in a shooting star, that takes a second to cross the screen. Below is my sketch for my project idea.

14572587_10154539645504330_479536189_o

Hannah K-Project-06

sketch-47.js

var txtOffset = 25;
var offset = 100;

// Using ellipse and rectangle to create cup
var cupW = 300;
var cupH = 400;

// White part of cup handle
var wHandleL = 150; // length
var wHandleW = 110; // width
var wHandleXpt = 400 // x-pos
var wHandleYpt = 250; // y-pos

// Background colored part of cup handle
var bHandleL = 90; // length
var bHandleW = 22; // width
var bHandleXpt = 410; // x-pos
var bHandleYpt = 205; // y-pos

function setup() {
    createCanvas(500, 600);
}

// Fills up the cup with coffee as the day goes on!
function draw() {
    // Get the current time
    var H = hour();
    var M = minute();
    var S = second();

    // Calculating heights of rectangles corresponding to H, M, S values
    // Looked at course code example for reference with mapping
    var hourBar = map(H, 0, 23, cupH, 0);
    var minuteBar = map(M, 0, 59, cupH, 0);
    var secondBar = map(S, 0, 59, cupH, 0);
    var barW = cupW/3;

    background(135, 206, 250);
    noStroke();
    // Main part of cup
    fill(255);
    rect(offset, offset, cupW, cupH);
    // Ellipse to draw white part of cup handle
    ellipse(wHandleXpt, wHandleYpt, wHandleW, wHandleL);
    // Ellipse to draw background color part of cup handle
    fill(135, 206, 250);
    rect(bHandleXpt, bHandleYpt, bHandleW, bHandleL, 5);

    // Fills up cup in relation to seconds
    fill(99, 49, 0);
    rect(offset, offset, barW, secondBar);

    // Fills up cup in relations to minutes
    fill(139, 115, 85);
    rect(offset+barW, offset, barW, minuteBar);

    // Fills up cup in relations to hours
    fill(139, 90, 43);
    rect(offset+2*barW, offset, barW, hourBar);
    
    // Display current time (24-hr time)
    fill(0);
    textAlign(RIGHT);
    text("Current hour: " + H, width-txtOffset, 25);
    text("Current minute: " + M, width-txtOffset, 35);
    text("Current second: " + S, width-txtOffset, 45);

    fill(255);
    textAlign(CENTER);
    text("No more coffee = Day is over! :) ", width/2, height-txtOffset);
}

When I learned that the project for this week was an abstract clock, one of the first ideas I had was to create an hourglass like representation of time using a cup of coffee. I personally love coffee and really enjoy drinking it (it’s not even for the caffeine)! I thought it would be interesting to represent the start of the day as a full cup of coffee and to show that the end of the day occurred when there was no more coffee left (aka the entire cup is white).

As usual, I drew out a picture before starting my project in order to help visualize coordinates of the elements of my coffee cup clock but definitely improvised more than usual along the way.

There were a couple of things I wanted to accomplish with this project but could not figure out. First, I wanted the bars representing the seconds, minutes, and hours to fill up from the top and drain towards the bottom. Secondly, I tried to figure out a way to combine all three elements of a day (the seconds, minutes, and hours) into a singular element to create a more realistic hourglass-like clock, but I was unable to do it.

Nonetheless, I enjoyed this project a lot.

20161007_231159-1

rgriswol_Project-06

sketch

/*
* Rachel Griswold
* rgriswol@andrew.cmu.edu
* Section B
* Project 06
*
*/

// Creates an abstract clock based on a simplified version of our solar system.
var m;
var s_init;
function setup(){
	createCanvas(800, 800);
}

function draw(){
	var mil = new Date().getMilliseconds(); // makes movement semi-continuous
	var s = second() + mil / 1000;
	var m = minute() + s / 60;
	var h = hour() + m / 60;

	var r = 33 + 159/h;
	var g = 10 + 242/h;
	var b = 65 + 187/h;

	background(r, g, b); // sky changes color depending on the hour

	var angleH = h * PI / 6 - PI / 2; // sets up the hour to move in terms of sin/cos
	var angleM = m * PI / 30 - PI / 2; // sets up the min to move in terms of sin/cos
	var angleS = s * PI / 30 - PI / 2; // sets up the sec to move in terms of sin/cos

	noStroke();
	fill(253, 236, 111);
	ellipse(width/2, height/2, 300, 300); // sun
	fill(100, 230, 100);
	ellipse(width/2 + cos(angleM) * 300, height/2 + sin(angleM) * 300, 80, 80); // earth
	fill(255);
	ellipse(width/2 + cos(angleM) * 300 + cos(angleS) * 80, height/2 + sin(angleM) * 300 + sin(angleS) * 80, 20, 20); // moon

	textSize(20);
	textAlign(CENTER);
	text(nf(hour() % 12,2,null)+":"+nf(minute(),2,null)+":"+nf(second(),2,null), width/2, height/2 + 10); // prints time on the sun

}

For this project (like my previous one) I was once again inspired by space. I decided to make a model based off of the rotation of the Earth around the sun and moon around the earth. Obviously the ratio of the velocity of the orbits aren’t similar to the real-life ratios, as this model is specifically meant to represent a typical hour/minute/second clock. The Earth represents the minutes, the moon represents the seconds, and the color changes of the sky represent the hours. I also printed the time (in numbers) on the sun to make it easier to understand how the movement of the ellipses and the changing color values correspond to the time.
I started with the sketch below. Initially I wanted to have stars pass in front of the sun like the zodiacs (there’s 12 zodiacs corresponding to each month, which works very nicely considering we use 12-hour clocks) but I realized they’d also either have to pass in front of or behind the Earth and moon (which felt weird) and it also meant I couldn’t include the time on the sun. So instead I decided to go with color changes to represent the hour, though I’d like to eventually figure out a way to make my original idea work.

14614434_698962960252897_1427463571_o

Abstract Clock

index

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>p5.js vers 0.5.2, Edit index.html to Change This Title</title>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js"></script>

    <!-- Uncomment the lines below to include extra p5 libraries, or 
         use template-all or template-all-min:
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.sound.js"></script>
    -->

    <script src="sketch.js" type="text/javascript"></script>
  </head>
  <body>
  </body>
</html>

sketch

//Arula Ratnakar
//Section C
//aratnaka@andrew.cmu.edu
//Abstract Clock




function setup() {
    createCanvas(600, 600);
}

//--------------------------
function draw() {
	background ('lightpink')
	
	var H = hour ()
	var M = minute()
	var S = second ()

	fill (96, 139, 209)
	triangle (M, 10, H, height/2,S*5, width/2)
	fill (90, 168, 89)
	triangle (width/2, S*5, height/2, H, 10, M) 
	push()
	translate (50,50)
	fill (90, 168, 89)
	triangle (M, 10, H, height/2,S*5, width/2)
	fill (96, 139, 209)
	triangle (width/2, S*5, height/2, H, 10, M) 
	push ()
	translate (50, 50)
	fill (96, 139, 209)
	triangle (M, 10, H, height/2,S*5, width/2)
	fill (90, 168, 89)
	triangle (width/2, S*5, height/2, H, 10, M) 
	push ()
	translate (50, 50)
	fill (90, 168, 89)
	triangle (M, 10, H, height/2,S*5, width/2)
	fill (96, 139, 209)
	triangle (width/2, S*5, height/2, H, 10, M)
	push ()
	translate (50, 50)
	fill (96, 139, 209)
	triangle (M, 10, H, height/2,S*5, width/2)
	fill (90, 168, 89)
	triangle (width/2, S*5, height/2, H, 10, M)
	push ()
	translate (50, 50)
	fill (90, 168, 89)
	triangle (M, 10, H, height/2,S*5, width/2)
	fill (96, 139, 209)
	triangle (width/2, S*5, height/2, H, 10, M)
	pop ()

}