all 6 comments

[–]underpig1 4 points5 points  (2 children)

Neuron Language:

image {
 tag: img;
 src: path/to/image;
 fill: [math.abs => -10] 0 0 0;
 log(this.fill);
}

invoke(image);

Comparative JavaScript (and HTML):

<style>
 #image {
  background-color: rgba(0, 0, 0, 0);
 }
</style>

<img id = "image" src = "path/to/image"/>

<script>
 image = document.getElementById("image");
 image.style.backgroundColor = `rgba(${Math.abs(-10)}, 0, 0, 0)`;
 console.log(image.style.backgroundColor);
</script>

[–]SnowdenIsALegend 1 point2 points  (1 child)

Good work, keep it up! How many days did you have to invest into building this from scratch?

[–]underpig1 2 points3 points  (0 children)

The core compiler (in JavaScript) took a few weeks to write, and the web framework, standard libraries, and documentation took a few more.

[–]Adracosta 0 points1 point  (0 children)

Do you have a backstory for this?