packages = ["sqlite3", "pandas"] [[fetch]] files = ["./COLORSTORE_for_web_20231017.sqlite3"] DIC COLOR Store ORDER Form 07(AdobeRGB)

AdobeRGBオーダーシート


① AdobeRGB値を指定してください




② オリジナル色名を入力してください。半角英数で13文字以内になり、必ず末尾に␣@(空白+@)が付きます。




色名は必ず入力してください。
オリジナル色名にDIC No.を記入しないでください。


見本サンプル(A4)

import pandas as pd import sqlite3 as sql from datetime import datetime from pyscript import Element import js def selected(): db_name = 'COLORSTORE_for_web_20231017.sqlite3' conn = sql.connect(db_name) id = js.document.getElementById("test1").value sql_command = 'SELECT CGNO_TEXT from colorNo_RGB INNER JOIN SwatchBook on colorNo_RGB.SW_ID = SwatchBook._ID WHERE SwatchBook._ID = '+id df=pd.read_sql_query(sql_command, conn) result = js.resetCombo() tbl = js.document.getElementById("test2") for index, row in df.iterrows(): option = js.document.createElement( "option" ) option.text = row['CGNO_TEXT'] tbl.add( option ) def selected2(): colName = js.document.getElementById("test2").value js.document.getElementById("validate_msg").innerText = "指定色: " + colName+"_IJ" result2 = js.btn_active() def selected3(): js.document.getElementById("rect1").style.backgroundColor = js.set_rgb(255,255,255) js.document.getElementById("button").disabled = True js.document.getElementById("text1").innerHTML = "" _r = js.document.getElementById("RGB_R").value _g = js.document.getElementById("RGB_G").value _b = js.document.getElementById("RGB_B").value if _r != "111" and _g != "111" and _b != "111": db_name = 'COLORSTORE_for_web_20231017.sqlite3' conn = sql.connect(db_name) id = _r+_g+_b sql_command = 'select * from AdobeRGB where AdobeRGB.colorName = "{}"'.format(id) df=pd.read_sql_query(sql_command, conn) if len(df)>0: RGB_R = str(df.iat[0,5]) RGB_G = str(df.iat[0,6]) RGB_B = str(df.iat[0,7]) js.document.getElementById("rect1").style.backgroundColor = js.set_rgb(RGB_R,RGB_G,RGB_B) js.document.getElementById("text1").innerHTML = "参考となる色を表示しています。
実際の出力サンプルの色とは異なります。" else: js.document.getElementById("rect1").style.backgroundColor = js.set_rgb(0,0,0) js.document.getElementById("text1").innerHTML = "IJプリンタの色再現域外の色です。
IJプリンタでは再現できません。" js.document.getElementById("button").disabled = True conn.close()