Skip to content
Discussion options

You must be logged in to vote

You can do this by creating a set of HTML elements where only the one element is changing in response to the parameter from the reconstruction plugin. The key concepts here are related to CSS positioning, which you'll need to use to get things aligned as you want. Here's a rough example, which hopefully can serve as a starting point:

var sample_function = function(stim_parameter){
	var size = 50 + Math.floor(stim_parameter * 250);
	var html = `
		<div style="position: relative; width: 800px; height: 400px;">
			<img src="img/PonzoBigRightClose.bmp" style="width:800px; height: 400px; position: absolute; z-index: 0">
			<div id="left-line" style="width:10px; height: 100px; background-color:…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@danieladigiammarino
Comment options

Comment options

You must be logged in to vote
1 reply
@danieladigiammarino
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants