yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] Audioboxer:
Kernel seems to be working well by the way, no reboots or any other issues. About the ROM, is the recents grey bar here to stay? Don't want to offend the decision to include it, I just think it looks a little out of place. Maybe not transparent enough?
[Nexus 5 Android Development] ninjasalad:
Agreed on the grey bar. With utmost respect, the bar is a bit of an eye sore and just takes up space on the recents page (overlapping seems to be messed up as well). The stock implementation of recents was fine IMO :D
[Nexus 5 Android Development] tomzefi:
First time flashing this rom. All i have to say is. O.......M.......G. AND I KINDA LIKE THE RECENTS BAR. GREAT ROM. REALLY STABLE SO FAR
[Nexus 5 Android Development] hacksome:
Is it just me, or the media volume changes are not working on this ROM?
[Nexus 5 Android Development] daleski75:
I agree the recents close bar is pig ugly and it's way button on the stock implementation so please put it back to the way it should be and also give us the ability to move the recents close bar and to add 3x4x5 tile options as well.

Good ROM btw :)
[Nexus 5 Android Development] Jason123420:
Solid ROM ! I'm new to the Nexus 5 and this seems the most stable out of all of the ones I have tried. Thank you
[Nexus 5 Android Development] mr. phillip:
Hi all!

To the devs: is halo implementation something to expect, or will it never be on this rom?

Just asking...

I know there are a lot of roms with it, but i like this one better, that is the reason for the question.

Thank you!
[Nexus 5 Android Development] kasper_h:
No plans for that ATM... But you never know what the future will bring :)

Verstuurd van mijn Nexus 5
[Nexus 5 Android Development] Mikeonic:
Having a lot of display issues. Lock screen freezing and turning black while widgets and fonts turn pixel. Also random freezes that also cause display problems.
[Nexus 5 Android Development] Dougfresh:
I've been running this ROM for days and it's on point. Good Shizzles lol! Hey can the flashlight toggle be fixed soon. Thanks Kasper
[Nexus 5 Android Development] Jrmiller:
what other kernels work well with this one?
[Nexus 5 Android Development] kasper_h:
For me it works since latest build. Should be fixed.

I have nothing like that. Isn't it linked to specific apps?

No idea, not advisable :)

Verstuurd van mijn Nexus 5
[Nexus 5 Android Development] jrny99:
Great running ROM. the GPS is a little slow to lock.
[Nexus 5 Android Development] antypas:
Nope,

Nightly 23/2 bootloops with ART. WTF...
[Nexus 5 Android Development] kasper_h:
Does it work fine with dalvik?

Can you capture a logcat?
[Nexus 5 Android Development] kasper_h:
OK, issue with ART confirmed. Problem was an upstream AOSP issue. It has been solved. Please refrain from 23/24-feb builds if using ART, next build should be safe (will make a test build and try myself tonight).
[Nexus 5 Android Development] Jrmiller:
any way to undo the pocket mode? mine wakes every time i touch it :(
[Nexus 5 Android Development] kasper_h:
Confirmed solved.

Do you use lockscreen notifications? It has the option to wake every time you unpocket the device. You should try disabling that option.

Verstuurd van mijn Nexus 5
[Nexus 5 Android Development] Jrmiller:
wow thanks man. must have just moved passed it when i was in there. 100% more happy with this rom now. :highfive:
[Nexus 5 Android Development] dupsatou:
Are there any known bugs or things that don't work here? I read through most of the thread and OP and didn't notice anything specific. I installed it and played around for a little bit and loved it but reverted because I wanted to check the stability.

The features are very cool though and this is the first rom I played with that I thought might be worth leaving my stock/gravity box combo for.

Thanks!
[Nexus 5 Android Development] kasper_h:
This ROM has no known problems. I have been using it successfully for a long time already. No soft reboots, no FC's...

Verstuurd van mijn Nexus 5
[Nexus 5 Android Development] Audioboxer:
kasper do you have all the CAF goodies throughout the whole ROM now, or is it mainly just the kernel that has CAF included?
[Nexus 5 Android Development] WizeGuyDezignz:
Have the Song ID Bluetooth problems been addressed?
[Nexus 5 Android Development] kasper_h:
Many updates (caf, audio/video, Bluetooth kernel) have been merged today or will be merged later today. So tomorrow nightly hopefully contains many improvements :)

I don't know about Bluetooth ID, as I don't use it. Maybe solved in next nightly, as it was part of the major update scheme :)

Verstuurd van mijn Nexus 5
[Nexus 5 Android Development] Audioboxer:
Sounds good kasper.

I've asked before but is the grey bar on the recents windows here to stay? Only thing I think looks out of place (even with RAM bar turned off, it's still there).
[Nexus 5 Android Development] kasper_h:
The colour is there to stay for the time being, although we are constantly discussing best looks.

Anyway, the major issue is that the bottom app in the recents panel is partly covered by the bar. This is something we thought to have fixed, but it seems to be only fixed for devices with hardware buttons, not for devices with navbar, like ours. This has something to do with ugly coding by Google, sometimes not taking into account navbar in calculating padding. We will try to solve this one ASAP.
[G2 Q&A, Help & Troubleshooting] baradimir:
I dropped my phone and now the mic and speaker will not work. Is it possible a connection came loose? I can't find any wiring diagrams online. Any help would be greatly appreciated.
[G2 Q&A, Help & Troubleshooting] baradimir:
No one knows how these are connected?
[G2 Q&A, Help & Troubleshooting] sdny8:
It is connected under the back cover. There are YouTube videos about replacing the screen. If u are looking at the exposed back. It is on the left hand side near towards the bottom of the phone. The speaker is enclosed in a piece of plastic. Take it apart and see what you can find. Either speaker or charger ribbon cable is bad.

Sent from LG G2 [MENTION=3397103]sdny8[/MENTION]
[Android Apps and Games] acadoid:
As I receive numerous questions and suggestions concerning the custom drawing tool JavaScript interface of LectureNotes and how to implement specific drawing tools, I thought that it might be helpful to collect codes here, which should allow to easily copy them. Please feel invited to post additional ones!

To start, a simple dashed line with longer dashing

width = LN.getWidth();
height = LN.getHeight();
size = Math.min(width, height);
strokewidth = LN.getStrokeWidth();
dashing1 = 0.01 * size;
dashing2 = (LN.getStrokeCap() == 1) ? dashing1 : dashing1 + 2 * strokewidth;
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
LN.setDashing(dashing1, dashing2);
LN.drawLine(x1, y1, x2, y2);

or a dashed line for which the dashing is not fixed but depends on pencil width

strokewidth = LN.getStrokeWidth();
dashing1 = 10 * strokewidth;
dashing2 = (LN.getStrokeCap() == 1) ? dashing1 : dashing1 + 2 * strokewidth;
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
LN.setDashing(dashing1, dashing2);
LN.drawLine(x1, y1, x2, y2);
[Android Apps and Games] mmcnulty:
I dont know how to go about creating these tools, and sadly, at the moment I dont actually have the time to invest in learning any of it. So hopefully, someone here can help.

I'd like to create three drawing tools which are similar to existing ones

The tools I could use are:

-Therefore. As in, ==> Right now there are tools for arrows, I'd pretty must just like two horizontal lines instead of one.

-If and only if. As in, <==>. Right now there are tools for two headed arrow lines. Again, pretty must the same as that but two horizontal lines.

-Coordinate System, but with the addition of preplaced labels for each axis. That is, when giving it things like y min and y max, would it also be possible to have it ask for a text field for labels? So that label would show up, and scale with the rest of it?

If anyone who can tell me what to do, or better yet, provide the code for it, that would be great.
[Android Apps and Games] acadoid:
[MENTION=5106588]mmcnulty[/MENTION]: Double-lined arrows will come with the next update.

Concerning coordinate system: Text variables are presently not supported, one could only have an integer variable that then maps on a text.
[Android Apps and Games] Tintinnuntius:
Here's a script that draws an n-gon centered at the centre of the chosen rectangle and extending all the way across its shortest side. It takes 2 parameters: the number of sides and the angle (in degrees) at which the first point should be positioned (see the attached image for details).

width = LN.getWidth();
height = LN.getHeight();
pi = 3.1415927;
sides = LN.getParameter(1);
phi = LN.getParameter(2)*2*pi/360;
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
x0 = (x1+x2)/2;
y0 = (y1+y2)/2;
r = Math.min(x0-x1,y0-y1);
t = LN.getStrokeWidth();
LN.setStrokeWidth(3*t);
LN.drawPoint(x0, y0);
for (i=1 ; i<=sides ; i++){
LN.drawPoint(x0+r*Math.cos(2*pi*i/sides+phi),y0-r*Math.sin(2*pi*i/sides+phi));
}
LN.setStrokeWidth(t);
for (i=1 ; i<=sides ; i++){
LN.drawLine(x0+r*Math.cos(2*pi*i/sides+phi),y0-r*Math.sin(2*pi*i/sides+phi), x0+r*Math.cos(2*pi*(i+1)/sides+phi),y0-r*Math.sin(2*pi*(i+1)/sides+phi));
}

View attachment 2522666

While creating the script I noticed that any error that would cause the script to fail (forgotten ; or any other bad syntax) would break that particular tool until LN was restarted. The rectangular area could still be chosen, but nothing would be drawn inside it. It took me a while to figure this out. At first I thought I had the wrong idea about either the scale or the axis orientation which caused the image to lie outside the bounded area. Just thought I should mention it in case someone else has the same problem. If you are sure your code should work, try restarting.
[Android Apps and Games] Tintinnuntius:
Here's another script. This one draws a rainbow coloured pie chart with up to 6 groups of data. Each parameter can take values between 0 and 100, so you can either enter the absolute numbers (if <100 for each group) or percentages. If you don't need all 6 you can set the extras to 0.

x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
x0 = (x1+x2)/2;
y0 = (y1+y2)/2;
r = Math.min(x0-x1,y0-y1);
q1 = LN.getParameter(1);
q2 = LN.getParameter(2);
q3 = LN.getParameter(3);
q4 = LN.getParameter(4);
q5 = LN.getParameter(5);
q6 = LN.getParameter(6);
s = q1+q2+q3+q4+q5+q6;
pi = 3.1415927;
phi1 = 2*pi*q1/s;
phi2 = 2*pi*(q1+q2)/s;
phi3 = 2*pi*(q1+q2+q3)/s;
phi4 = 2*pi*(q1+q2+q3+q4)/s;
phi5 = 2*pi*(q1+q2+q3+q4+q5)/s;
phi6 = 2*pi;
LN.setColor(1,0,0);
LN.setAlpha(0.3);
LN.drawFilledArc(x0,y0,r,0,-phi1);
LN.setColor(1,0.5,0);
LN.setAlpha(0.3);
LN.drawFilledArc(x0,y0,r,-phi1,-phi2+phi1);
LN.setColor(1,1,0);
LN.setAlpha(0.3);
LN.drawFilledArc(x0,y0,r,-phi2,-phi3+phi2);
LN.setColor(0,1,0);
LN.setAlpha(0.3);
LN.drawFilledArc(x0,y0,r,-phi3,-phi4+phi3);
LN.setColor(0,0,1);
LN.setAlpha(0.3);
LN.drawFilledArc(x0,y0,r,-phi4,-phi5+phi4);
LN.setColor(1,0,1);
LN.setAlpha(0.3);
LN.drawFilledArc(x0,y0,r,-phi5,-phi6+phi5);
LN.setAlpha(1);
LN.setColor(0,0,0);
LN.drawCircle(x0,y0,r);
LN.drawLine(x0,y0,x0+r,y0);
LN.drawLine(x0,y0,x0+r*Math.cos(phi1),y0-r*Math.sin(phi1));
LN.drawLine(x0,y0,x0+r*Math.cos(phi2),y0-r*Math.sin(phi2));
LN.drawLine(x0,y0,x0+r*Math.cos(phi3),y0-r*Math.sin(phi3));
LN.drawLine(x0,y0,x0+r*Math.cos(phi4),y0-r*Math.sin(phi4));
LN.drawLine(x0,y0,x0+r*Math.cos(phi5),y0-r*Math.sin(phi5));

View attachment 2523784

View attachment 2523786
[Android Apps and Games] Tintinnuntius:
And one more. This one draws the pie chart in monochrome. The colour used to fill the area is the same as the colour of the currently active pencil. Opacity is inversely proportional to the square root of the percentage, so smaller areas are more opaque and larger areas are less opaque (giving the impression that the same amount of colour is spread over areas of different sizes).

x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
x0 = (x1+x2)/2;
y0 = (y1+y2)/2;
r = Math.min(x0-x1,y0-y1);
q1 = LN.getParameter(1);
q2 = LN.getParameter(2);
q3 = LN.getParameter(3);
q4 = LN.getParameter(4);
q5 = LN.getParameter(5);
q6 = LN.getParameter(6);
s = q1+q2+q3+q4+q5+q6;
pi = 3.1415927;
phi1 = 2*pi*q1/s;
phi2 = 2*pi*(q1+q2)/s;
phi3 = 2*pi*(q1+q2+q3)/s;
phi4 = 2*pi*(q1+q2+q3+q4)/s;
phi5 = 2*pi*(q1+q2+q3+q4+q5)/s;
phi6 = 2*pi;
LN.setAlpha(1-Math.sqrt(q1/s));
LN.drawFilledArc(x0,y0,r,0,-phi1);
LN.setAlpha(1-Math.sqrt(q2/s));
LN.drawFilledArc(x0,y0,r,-phi1,-phi2+phi1);
LN.setAlpha(1-Math.sqrt(q3/s));
LN.drawFilledArc(x0,y0,r,-phi2,-phi3+phi2);
LN.setAlpha(1-Math.sqrt(q4/s));
LN.drawFilledArc(x0,y0,r,-phi3,-phi4+phi3);
LN.setAlpha(1-Math.sqrt(q5/s));
LN.drawFilledArc(x0,y0,r,-phi4,-phi5+phi4);
LN.setAlpha(1-Math.sqrt(q6/s));
LN.drawFilledArc(x0,y0,r,-phi5,-phi6+phi5);
LN.setAlpha(1);
LN.setColor(0,0,0);
LN.drawCircle(x0,y0,r);
LN.drawLine(x0,y0,x0+r,y0);
LN.drawLine(x0,y0,x0+r*Math.cos(phi1),y0-r*Math.sin(phi1));
LN.drawLine(x0,y0,x0+r*Math.cos(phi2),y0-r*Math.sin(phi2));
LN.drawLine(x0,y0,x0+r*Math.cos(phi3),y0-r*Math.sin(phi3));
LN.drawLine(x0,y0,x0+r*Math.cos(phi4),y0-r*Math.sin(phi4));
LN.drawLine(x0,y0,x0+r*Math.cos(phi5),y0-r*Math.sin(phi5));

View attachment 2523887
[Android Apps and Games] Tintinnuntius:
A couple of scripts for people who, like me, draw graphs first and the marks the axes later ;) The axes are drawn in black and the colour of the "curve" is the same as the currently selected pen.

You can see that the graphs are made up of a lot of dots if the y-axis is much taller than the x-axis, but I kinda like the effect :)

Bell curve (no parameters):

strokewidth = LN.getStrokeWidth();
head = 5*strokewidth;
open = 0.4;
headcos = head * Math.cos(open);
headsin = head * Math.sin(open);
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
red = LN.getRed();
green = LN.getGreen();
blue = LN.getBlue();
xmin = Math.min(x1, x2);
ymin = Math.min(y1, y2);
xmax = Math.max(x1, x2);
ymax = Math.max(y1, y2);
xavail = Math.max(0, xmax - xmin - headsin - 2 * headcos);
yavail = Math.max(0, ymax - ymin - headsin - 2 * headcos);
xorigin = headsin;
yorigin = headsin;
LN.setColor(0,0,0);
LN.drawLine((xmin + xmax)/2, ymin + headcos, (xmin + xmax)/2 , ymax);
LN.drawFilledTriangle( (xmin + xmax)/2 - headsin, ymin + headcos, (xmin + xmax)/2 , ymin, (xmin + xmax)/2 + headsin, ymin + headcos);
a = 0.8*(ymax-ymin);
b = (xmin + xmax)/2;
c = 0.8*(1/6)*(xmax-xmin);
d = ymax-yorigin;
LN.setStrokeWidth(1.2*strokewidth);
n = Math.floor((xmax-xmin)/2);
LN.setColor(red,green,blue);
for (i=0 ; i<=n-5 ; i++){
LN.drawPoint(b+i, -a*Math.exp(-i*i/(2*c*c))+d);
LN.drawPoint(b-i, -a*Math.exp(-i*i/(2*c*c))+d);
}
LN.setStrokeWidth(strokewidth);
LN.setColor(0,0,0);
LN.drawLine(xmin, ymax - yorigin, xmax - headcos, ymax - yorigin);
LN.drawFilledTriangle(xmax - headcos, ymax - yorigin + headsin, xmax, ymax - yorigin, xmax - headcos, ymax - yorigin - headsin);

Quadratic parabola (again, no parameters):

strokewidth = LN.getStrokeWidth();
head = 5*strokewidth;
open = 0.4;
headcos = head * Math.cos(open);
headsin = head * Math.sin(open);
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
red = LN.getRed();
green = LN.getGreen();
blue = LN.getBlue();
xmin = Math.min(x1, x2);
ymin = Math.min(y1, y2);
xmax = Math.max(x1, x2);
ymax = Math.max(y1, y2);
xavail = Math.max(0, xmax - xmin - headsin - 2 * headcos);
yavail = Math.max(0, ymax - ymin - headsin - 2 * headcos);
xorigin = headsin;
yorigin = headsin;
LN.setColor(0,0,0);
LN.drawLine(xmin, ymax - yorigin, xmax - headcos, ymax - yorigin);
LN.drawLine((xmin + xmax)/2, ymin + headcos, (xmin + xmax)/2 , ymax);
LN.drawFilledTriangle(xmax - headcos, ymax - yorigin + headsin, xmax, ymax - yorigin, xmax - headcos, ymax - yorigin - headsin);
LN.drawFilledTriangle( (xmin + xmax)/2 - headsin, ymin + headcos, (xmin + xmax)/2 , ymin, (xmin + xmax)/2 + headsin, ymin + headcos);
a = 4*(ymax-ymin);
b = (xmin + xmax)/2;
d = ymax-yorigin;
LN.setStrokeWidth(1.2*strokewidth);
n = Math.floor((xmax-xmin)/2);
c = (xmax-xmin);
LN.setColor(red,green,blue);
for (i=0 ; i<=n ; i++){
LN.drawPoint(b+i,-a*(i/c)*(i/c)+d);
LN.drawPoint(b-i,-a*(i/c)*(i/c)+d);
}
LN.setStrokeWidth(strokewidth);

View attachment 2524294
[Android Apps and Games] Canguy247:
A code snippet

Here is my code for a bar graph. Some of the code is based on the standard examples from Acadoid.

It can have up to 6 bars (I guess more could be added). Error checking is limited so follow the following rules:

If you only want 3 bars, enter the first 3 numbers. For the 4th and beyond only use -1. Example:

First: 20

Second: 30

Third: 50

Fourth: -1

Fifth: -1

Sixth: -1

Works but...

First: 20

Second: 30

Third: 50

Fourth: -1

Fifth: -1

Sixth: 30

Doesn't Work as planned since my code makes assumptions.

I have included a picture which show this in action along with some other stuff I will post.

Enjoy!

width = LN.getWidth();
height = LN.getHeight();
total = 0;
var colours = new Array();
colours[1]= new Array();
colours[1][1]=1;
colours[1][2]=0;
colours[1][3]=0;
colours[2]= new Array();
colours[2][1]=0;
colours[2][2]=0;
colours[2][3]=1;
colours[3]= new Array();
colours[3][1]=0;
colours[3][2]=1;
colours[3][3]=0;
colours[4]= new Array();
colours[4][1]=1;
colours[4][2]=0;
colours[4][3]=1;
colours[5]= new Array();
colours[5][1]=1;
colours[5][2]=1;
colours[5][3]=0;
colours[6]= new Array();
colours[6][1]=0;
colours[6][2]=1;
colours[6][3]=1;
var parameterList=new Array();
totalParams=0;
maxValue=0;
x1 = LN.getX1()+3;
y1 = LN.getY1()+3;
x2 = LN.getX2()-3;
y2 = LN.getY2()-3;
for(i = 1; i <= 6; i++) {
parameterList[i] = LN.getParameter(i);
if (parameterList[i] > maxValue) {
maxValue= parameterList[i];
}
if (parameterList[i] >= 0) {
totalParams+=1;
total += parameterList[i];
}
}
curPos=0;
barWidth= Math.abs(x2-x1)/totalParams;
for(i = 1; i <= totalParams; i++) {
LN.setColor(colours[i][1], colours[i][2], colours[i][3]);
LN.drawFilledRect(x1+curPos, y2, x1+curPos+barWidth, y2-Math.abs(y2-y1)*(parameterList[i]/maxValue));
curPos += barWidth;
}
LN.setColor();
LN.drawLine(x1, y1-3, x1, y2+3);
LN.drawLine(x1-3, y2, x2+3, y2);
curPos=0;
for(i = 1; i <= totalParams; i++) {
LN.drawRect(x1+curPos, y2, x1+curPos+barWidth, y2-Math.abs(y2-y1)*(parameterList[i]/maxValue));
LN.drawLine( x1+curPos+barWidth , y2, x1+curPos+barWidth , y2+3);
curPos += barWidth;
}
[Android Apps and Games] Canguy247:
List bullets

Here is the code for the bullets seen in my previous post. The snap-to-grid code was stolen from the included examples.

width = LN.getWidth();
scale = LN.getScale ();
step = width / 150 + scale * width / 25;
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2() - 10;
y2 = LN.getY2() - 10;
x1g = Math.floor((x1 - (step / 2)) / step + 0.5) * step;
y1g = Math.floor((y1 - (step / 2)) / step + 0.5) * step;
x2g = Math.floor((x2 - (step / 2)) / step + 0.5) * step;
y2g = Math.floor((y2 - (step / 2)) / step + 0.5) * step;
tall = scale * 14;
wide = tall * 2;
LN.setClip(x2g - tall, y2g- tall, x2g + wide, y2g + tall);
LN.drawLine(x2g, y2g, x2g - tall, y2g - tall);
LN.drawLine(x2g, y2g, x2g - tall, y2g + tall);
LN.drawLine(x2g - tall, y2g -tall, x2g + wide, y2g);
LN.drawLine(x2g - tall, y2g + tall, x2g + wide, y2g);

---------- Post added at 04:07 PM ---------- Previous post was at 04:03 PM ----------

And the check boxes. More code borrowing here...

width = LN.getWidth();
scale = LN.getScale ();
step = width / 150 + scale * width / 25;
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2() - 10;
y2 = LN.getY2() - 10;
x1g = Math.floor((x1 - (step / 2)) / step + 0.5) * step;
y1g = Math.floor((y1 - (step / 2)) / step + 0.5) * step;
x2g = Math.floor((x2 - (step / 2)) / step + 0.5) * step;
y2g = Math.floor((y2 - (step / 2)) / step + 0.5) * step;
tall = scale * 12;
wide = tall * 2;
LN.setClip( x2g - wide/2, y2g - wide/2, x2g+ wide/2, y2g + wide/2 );
LN.drawRect(x2g - wide/2, y2g - wide/2, x2g+ wide/2, y2g + wide/2);

---------- Post added at 04:12 PM ---------- Previous post was at 04:07 PM ----------

Enjoy and if anyone has a request I am sure someone might help you out... myself included.

Star:

x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
pi = 3.14159;
r = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
xmin = x1 - r;
ymin = y1 - r;
xmax = x1 + r;
ymax = y1 + r;
scaler = r;
c1 = scaler * (Math.sqrt (5)-1) / 4;
c2 = scaler * (Math.sqrt (5)+1) / 4;
s1 = scaler * Math.sqrt (10 + 2 * Math.sqrt (5)) / 4;
s2 = scaler * Math.sqrt (10 - 2 * Math.sqrt (5)) / 4;
LN.setClip(xmin, ymin, xmax, ymax);
LN.drawLine(x1 + scaler, y1, x1 - c2, y1 + s2);
LN.drawLine(x1 + scaler, y1, x1 - c2, y1 - s2);
LN.drawLine(x1 - c2, y1 + s2, x1 + c1, y1 - s1);
LN.drawLine(x1 - c2, y1 - s2, x1 + c1, y1 + s1);
LN.drawLine(x1 + c1, y1 + s1, x1 + c1, y1 - s1);

Happy face:

x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
r = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
xmin = x1 - r;
ymin = y1 - r;
xmax = x1 + r;
ymax = y1 + r;
eye = 1+ r/ 12;
LN.setClip(xmin, ymin, xmax, ymax);
LN.drawOval(x1, y1, r, r);
LN.drawFilledOval(x1 + r/ 3, y1 - r/3, eye, eye);
LN.drawFilledOval(x1 - r/ 3, y1 - r/3, eye, eye);
LN.drawArc(x1, y1, r / 1.8, 0, 3.14);
[Android Apps and Games] Tintinnuntius:
[MENTION=4619147]acadoid[/MENTION]: Any chance we will be able to use more than 6 parameters in the future? I'm planning on making a script that takes your sample and returns its average and sample standard deviation. If it were possible to go up to at least 10 parameters that would be great.