test post please ignore
The first blog post - about creating this blog.
(Abstract) Step 1: creating logo. using svg and polygon, controllable with javasript textarea. Step 2: Design layout. effective screen area for reading purpose. css3. Step 3: Stylize text (inspiration), code markup (using prism).
Some normal text here at the bottom to test css...
for (int i = 0; i< arr.length; i++){
doStuff();
}
UDPStruct BufToMessage(char* buf)
{
UDPStruct message;
uint8 l = buf[0];
message.length = l;
message.boxes = new Box[l];
for (int i = 0; i < l; i++)
{ //Converting from byte array to signed short
message.boxes[i].x = (short) ((buf[2+i*4] << 8) & 0xff00) | (buf[1+i*4] & 0xff);
message.boxes[i].y = (short) ((buf[4+i*4] << 8) & 0xff00) | (buf[3+i*4] & 0xff);
}
return message;
}
public UDPStruct(PointF[] inputs) {
Length = 1+inputs.length*4;
byte[] b = new byte[Length];
b[0] = (byte) inputs.length; //overflow > 127
for (int i = 0; i < inputs.length; i++)
{
short x = (short) Math.floor(inputs[i].x);
short y = (short) Math.floor(inputs[i].y);
b[1+i*4] = (byte)(x & 0xff);
b[2+i*4] = (byte)((x >> 8) & 0xff);
b[3+i*4] = (byte)(y & 0xff);
b[4+i*4] = (byte)((y >> 8) & 0xff);
}
Bytes = b;
}