You are not logged in.

jordi

Professional

  • "jordi" started this thread

Posts: 583

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

1

Tuesday, July 11th 2017, 4:52pm

Krpano Calculator

Hi,

This last weekend, was a mountain rainy weekend, so I decided to start teaching some code to my 7 years old son, we decided to make a calculator, the framework was krpano, and as always it was a nice adventure.

It took about 4 hours designing, thinking the concept and coding it.

As always the details, were the most time consuming part, adding constants like PI, being able to put coma, simplifying code.

The funny part was not having internet to ask for anything like: how to code a calculator in javascript, so everything we wrote was from scratch and had to be carefully thinked.

The final code is about 350 lines everything fully extended (13kb - 4kb minified), it took 8 actions, one array for buttons positions, 1 event for keyboard entry, and one graphic image for visual UI.

After coding this, specially without consulting nothing, I was thinking in how many different ways that could be coded, and I guess everyone would code it on it's own way, a way that is defined by it's way of thinking and of course by it's knowledge.

So I invite you to write your own calculator in krpano script, and let's check it out :

maybe the beginning of the KRPANO CHALLENGES

here is mine


PD : there are still missing features like full query support, and I think some 0 related issues that I will fix ( having the documentation in front) , will have to wait for the next rainy weekend
everpano.com step beyond 360

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

3

Wednesday, July 12th 2017, 5:02pm

*thumbsup*

panomaster

Intermediate

Posts: 297

Location: Kobyłka, Poland

Occupation: Virtual Tours - Spherical Panoramas - Krpano developer

  • Send private message

4

Thursday, July 13th 2017, 2:38am

Keep going ;)

5

Thursday, July 13th 2017, 9:33am

Well done and lovely designed *thumbsup*

danavon

Beginner

Posts: 8

Location: Sicily

Occupation: Cultural Heritage Photography

  • Send private message

6

Wednesday, February 7th 2018, 3:20pm

*thumbsup*
Danavon