-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: e016899489b8be7b58f8ed36872b171c89ec2d4b: path_to: revision_to:
commit e016899489b8be7b58f8ed36872b171c89ec2d4b Author: James Baicoianu <james_github@baicoianu.com> Date: Mon Sep 20 12:45:31 2021 -0700 Added support for custom line segment colors diff --git a/scripts/elements/linesegments.js b/scripts/elements/linesegments.js
--- a/scripts/elements/linesegments.js +++ b/scripts/elements/linesegments.js @@ -75,9 +75,13 @@ elation.require(['janusweb.janusbase'], function() { this.geometry.computeBoundingSphere(); } }, - setLine(offset, start, end) { + setLine(offset, start, end, color) { this.positions[offset * 2] = start; this.positions[offset * 2 + 1] = end; + if (color) { + this.colors[offset * 2] = color; + this.colors[offset * 2 + 1] = color; + } }, getLine(idx) { let line = {
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:15:43 2024