*waves* I coded a thing that'll tell you what breeding combinations will produce if you're like me and wondering what to breed C: Only input the colors of compatible Pokemon though, because it just takes color input. Underlined colors are one of the main 12 colors. The code outputs a table with males are on the left and females are on top. To change what colors are being used edit the "female=[#,#];" and "male=[#,#];" lines at the top. Add in your Pokemon's colors with a comma following each C:
Let me know if there's any issues with what the numbers are spitting out! If you need a place to paste the code to use it, I recommend this site.HTML Code:<script> female=[0,30,60,90,120,150,180,210,240,270,300,330]; male=[0,30,60,90,120,150,180,210,240,270,300,330]; x="<table border='1'>"; for(i=0;i<=male.length;i++){ x+="<tr>"; for(j=0;j<=female.length;j++){ x+="<td>"; if(i==0 && j==0) x+="<b>M/F</b>"; //[0,0] else if(i==0) x+="<b>"+clr(female[j-1])+"</b>"; //female header else if(j==0) x+="<b>"+clr( male[i-1])+"</b>"; //male header else { f=female[j-1], m=male[i-1]; if(f==m) x+=clr(f); else { val=(f+m)/2; high=f,low=m; if(f<m) high=m,low=f; if(high-low==180) x+="Grey"; else{ val2=((360-high)+low)/2; val3=val2+high; if(val2+high>360) val3=val2+low; if(val-low<val2) x+=clr(val); else x+=clr(val3); } } } x+"</td>"; } x+="</tr>"; } x+="</table>"; document.write(x); function clr(num){ if(num%30==0) return "<span style='color:hsl("+num+",100%,50%)'><u>"+num+"</u></span>"; return "<span style='color:hsl("+num+",100%,50%)'>"+num+"</span>"; }</script>





Reply With Quote
Bookmarks