-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jscolor [suggest] #13
Comments
I agree that the native color window boxes are annoying. This is a good suggestion, I'll see what I can do. |
@bigtimebuddy |
The problem is getting it to play well with the React-like framework I’m using since it’s not jquery. It’s mostlynusing bootstrap from the css styles |
if you want use jscolor // listener when color change
obj.onFineChange = function(){
refreshYourHtml();
}; |
i also don't use jquery on my side. (i know nothing about React!) //attache a new input color module to html tint
const jsColor = new jscolor(document.getElementById(!light&&"tint"||"color"));
jsColor.keyName = !light&&"tint"||"color";
jsColor.zIndex = 9999999;
Cage_DataEditor.jsColor = jsColor; also little example for html code , i dont know if this will help you. <tr><!--falloff -->
<td>
<div class="funkyradio funkyradio-success">
<input type="checkbox" name="checkbox" id="_falloff"/>
<label for="_falloff" style="text-indent:0px;margin-right:0px;">.</label>
</div>
</td>
<td>[0.75,3,20]</td>
<td id="_setDark-BoxDisplay" style="display: block;">
<font color="#d2bc97">falloff attenuation coefficients controler</font><br><br>
<div class="form-control">
<b>kc</b> <input value=0.75 data-slider-min=0.01 data-slider-max=2 data-slider-step=0.01 data-slider-value=0.75 data-slider-id="RC" id="kc" data-slider-handle="triangle" type="text" class="span2" /><br>
<b>kl</b> <input value=3 data-slider-min=0.01 data-slider-max=20 data-slider-step=0.01 data-slider-value=3 data-slider-id="GC" id="kl" data-slider-handle="triangle" type="text" class="span2"/><br>
<b>kq</b> <input value=20 data-slider-min=0.01 data-slider-max=50 data-slider-step=0.01 data-slider-value=20 data-slider-id="BC" id="kq" data-slider-handle="triangle" type="text" class="span2"/>
</div>
</td> and css, please dont punish me lol, i know i use transition css #RGB {
height: 20px;
background: rgb(128, 128, 128);
}
#RC .slider-selection {
background: #FF8282;
border: 1px solid rgb(32, 32, 32);
transition: all 1s; /* transition when the mouse over */
}
#RC .slider-handle {
background: red;
}
#GC .slider-selection {
background: #428041;
border: 1px solid rgb(32, 32, 32);
transition: all 1s; /* transition when the mouse over */
}
#GC .slider-handle {
background: green;
}
#BC .slider-selection {
background: #8283FF;
border: 1px solid rgb(32, 32, 32);
transition: all 1s; /* transition when the mouse over */
}
#BC .slider-handle {
border-bottom-color: blue;
}
#R, #G, #B {
width: 300px;
}
#BC {
transition: all 1s; /* transition when the mouse over */
}
#GC {
transition: all 1s; /* transition when the mouse over */
}
#RC {
transition: all 1s; /* transition when the mouse over */
}
#BC:hover {
border: 2px solid #8283FF;
border-radius: 50%;
}
#GC:hover {
border: 2px solid #428041;
border-radius: 50%;
}
#RC:hover {
border: 2px solid #FF8282;
border-radius: 50%;
} for bootstrap button i also use a another hack |
@bigtimebuddy Add a global options section for your tools for manage sliders and color !?. |
@bigtimebuddy It's too complicated for me, I'm able to implement the basics, but impossible for me to find a hack way for that portion. |
Just had this request come through from our artists too! Mainly wishing there was an easy way to just paste in a known hex value and it work, rather than having to use the native ui |
a little more intuitive suggestion to work with colors.
http://jscolor.com/examples/
The native color windows box are hard to work. :)
The text was updated successfully, but these errors were encountered: